1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

autojump will not remember home dir (may be in conflict with other directory)

This commit is contained in:
Simon Marache-Francisco 2009-03-31 09:48:33 +02:00
parent 904fc8b744
commit e86f8a537d

View File

@ -75,6 +75,7 @@ except IOError:
path_dict={} path_dict={}
if ('-a','') in optlist: if ('-a','') in optlist:
if(args[-1] != os.path.expanduser("~")): # home dir can be reached quickly by "cd" and may interfere with other directory
dicadd(path_dict,args[-1]) dicadd(path_dict,args[-1])
save(path_dict,dic_file) save(path_dict,dic_file)
elif ('--stat','') in optlist: elif ('--stat','') in optlist: