aboutsummaryrefslogtreecommitdiff
path: root/g.sh
diff options
context:
space:
mode:
Diffstat (limited to 'g.sh')
-rw-r--r--g.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/g.sh b/g.sh
index 5ccb5ff..8513190 100644
--- a/g.sh
+++ b/g.sh
@@ -83,6 +83,11 @@ __g_join_path() {
g() {
version="0.3.8"
cmd="$1"
+ if [ -z "$cmd" ]; then
+ __g_help
+ return 1
+ fi
+
__g_file=$HOME/.gfile
declare -A __g_shortcuts