From 550906075a0b3076a2271d993266d6da7b1d8bde Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Thu, 22 Jun 2023 12:46:02 -0600 Subject: [PATCH] minor updates --- gpush | 14 +++++++------- lookup | 1 + mark | 9 ++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gpush b/gpush index 666a7eb..3e8eb4c 100755 --- a/gpush +++ b/gpush @@ -3,10 +3,10 @@ # Catch any input that is invalid. if [[ $# -eq 0 || $# -gt 1 ]]; then echo "\nImproper usage. Try:" - echo "\ngit-push [ \"message\" | -h | --help ]" - echo " git-push \"init commit\"" - echo " git-push -h" - echo " git-push --help" + echo "\ngpush [ \"message\" | -h | --help ]" + echo " gpush \"init commit\"" + echo " gpush -h" + echo " gpush --help" exit @@ -17,9 +17,9 @@ elif [[ $1 == "-h" || $1 == "--help" ]]; then echo "\n\nUsage:" echo "\ngit-push [ \"message\" | -h | --help ]" - echo " git-push \"init commit\"" - echo " git-push -h" - echo " git-push --help" + echo " gpush \"init commit\"" + echo " gpush -h" + echo " gpush --help" exit diff --git a/lookup b/lookup index 8b1df95..3c7b7a6 100755 --- a/lookup +++ b/lookup @@ -1,4 +1,5 @@ #!/bin/zsh + # Display help. if [[ $1 == "-h" || $1 == "--help" ]]; then echo "Available commands:" diff --git a/mark b/mark index ab448c9..23823a8 100755 --- a/mark +++ b/mark @@ -1,12 +1,10 @@ #!/bin/bash -# Usage: mark [-ls] [-rm number] [-rm number TO number] -# Creates a bookmark of the current directory, displays a list of bookmarks if the -ls option is provided BOOKMARKS_FILE=~/.bookmarks -# Catch case where there are too many arguments. +# Catch any invalid input. if [[ $# -gt 1 ]]; then - echo "Proper usage: mark [ -ls | -rm [ keyword ] ]" + echo "Improper usage: mark { -ls | -rm [ keyword ] }" echo " eg. mark" echo " eg. mark -ls" echo " eg. mark -rm portfolio" @@ -22,7 +20,8 @@ elif [[ $1 == "-h" || $1 == "--help" ]]; then echo " mark" echo " mark -ls" echo " eg. run main" - echo " mark -rm" + echo " mark -rm [ keyword ]" + echo " eg. mark -rm portfolio" echo " mark -h" echo " mark --help"