minor updates

This commit is contained in:
Josh Ashton
2023-06-22 12:46:02 -06:00
parent 284d48138b
commit 550906075a
3 changed files with 12 additions and 12 deletions
+7 -7
View File
@@ -3,10 +3,10 @@
# Catch any input that is invalid. # Catch any input that is invalid.
if [[ $# -eq 0 || $# -gt 1 ]]; then if [[ $# -eq 0 || $# -gt 1 ]]; then
echo "\nImproper usage. Try:" echo "\nImproper usage. Try:"
echo "\ngit-push [ \"message\" | -h | --help ]" echo "\ngpush [ \"message\" | -h | --help ]"
echo " git-push \"init commit\"" echo " gpush \"init commit\""
echo " git-push -h" echo " gpush -h"
echo " git-push --help" echo " gpush --help"
exit exit
@@ -17,9 +17,9 @@ elif [[ $1 == "-h" || $1 == "--help" ]]; then
echo "\n\nUsage:" echo "\n\nUsage:"
echo "\ngit-push [ \"message\" | -h | --help ]" echo "\ngit-push [ \"message\" | -h | --help ]"
echo " git-push \"init commit\"" echo " gpush \"init commit\""
echo " git-push -h" echo " gpush -h"
echo " git-push --help" echo " gpush --help"
exit exit
+1
View File
@@ -1,4 +1,5 @@
#!/bin/zsh #!/bin/zsh
# Display help. # Display help.
if [[ $1 == "-h" || $1 == "--help" ]]; then if [[ $1 == "-h" || $1 == "--help" ]]; then
echo "Available commands:" echo "Available commands:"
+4 -5
View File
@@ -1,12 +1,10 @@
#!/bin/bash #!/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 BOOKMARKS_FILE=~/.bookmarks
# Catch case where there are too many arguments. # Catch any invalid input.
if [[ $# -gt 1 ]]; then if [[ $# -gt 1 ]]; then
echo "Proper usage: mark [ -ls | -rm [ keyword ] ]" echo "Improper usage: mark { -ls | -rm [ keyword ] }"
echo " eg. mark" echo " eg. mark"
echo " eg. mark -ls" echo " eg. mark -ls"
echo " eg. mark -rm portfolio" echo " eg. mark -rm portfolio"
@@ -22,7 +20,8 @@ elif [[ $1 == "-h" || $1 == "--help" ]]; then
echo " mark" echo " mark"
echo " mark -ls" echo " mark -ls"
echo " eg. run main" echo " eg. run main"
echo " mark -rm" echo " mark -rm [ keyword ]"
echo " eg. mark -rm portfolio"
echo " mark -h" echo " mark -h"
echo " mark --help" echo " mark --help"