changed default behaviour for gcd. now lists all dirs wihtout args
This commit is contained in:
@@ -184,8 +184,9 @@ function gcd() {
|
|||||||
local cdto
|
local cdto
|
||||||
{ cdto=$( python -c '
|
{ cdto=$( python -c '
|
||||||
import sys,os,re
|
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")
|
print("Arguments: [dir/]pattern_to_match_folders")
|
||||||
|
if sys.argv[-1]=="-h":
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
def G():
|
def G():
|
||||||
return "\033[32;1m"
|
return "\033[32;1m"
|
||||||
|
|||||||
Reference in New Issue
Block a user