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.
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
+1
View File
@@ -1,4 +1,5 @@
#!/bin/zsh
# Display help.
if [[ $1 == "-h" || $1 == "--help" ]]; then
echo "Available commands:"
+4 -5
View File
@@ -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"