changed default behaviour for gcd. now lists all dirs wihtout args

This commit is contained in:
ville rantanen
2014-09-01 09:34:26 +03:00
parent aa6a30ca48
commit 2c605ab178

View File

@@ -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"