From b7b93f7a431bf2a3fd5ed12f19989179a611a880 Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Mon, 12 Feb 2024 10:23:33 -0700 Subject: [PATCH] cleanup --- lookup | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 lookup diff --git a/lookup b/lookup deleted file mode 100755 index b17792b..0000000 --- a/lookup +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/zsh - -# Display help. -if [[ $1 == "-h" || $1 == "--help" ]]; then - echo "Available commands:" - echo " user [user]" - echo " eg. lookup user quaxlyqueen" - echo " repo [user] [repo]" - echo " eg. lookup repo quaxlyqueen/dnd" - echo " -h" - echo " --help" - -# Lookup a user. -elif [[ $1 == "user" ]]; then - firefox "https://github.com/search?q=$2&type=users" - -# Lookup a repo. -elif [[ $1 == "repo" ]]; then - - firefox "https://github.com/search?q=$2&type=repositories" - -# Catch any invalid input. -else - echo "Improper usage: lookup [command] [search term]" - echo "Available commands:" - echo " user [user]" - echo " eg. lookup user quaxlyqueen" - echo " repo [user] [repo]" - echo " eg. lookup repo quaxlyqueen/dnd" - -fi