From 2c605ab178740842173fb3cf4b12d64bd834e148 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Mon, 1 Sep 2014 09:34:26 +0300 Subject: [PATCH] changed default behaviour for gcd. now lists all dirs wihtout args --- qcd_function | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcd_function b/qcd_function index 86c961a..1e0c2e2 100644 --- a/qcd_function +++ b/qcd_function @@ -184,8 +184,9 @@ function gcd() { local cdto { cdto=$( python -c ' import sys,os,re -if len(sys.argv)==1: +if len(sys.argv)==1 or sys.argv[-1]=="-h": print("Arguments: [dir/]pattern_to_match_folders") +if sys.argv[-1]=="-h": sys.exit(0) def G(): return "\033[32;1m"