From e86f8a537dc4de86b1211d238ba28b90312338e7 Mon Sep 17 00:00:00 2001 From: Simon Marache-Francisco Date: Tue, 31 Mar 2009 09:48:33 +0200 Subject: [PATCH] autojump will not remember home dir (may be in conflict with other directory) --- autojump | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autojump b/autojump index 5b353ba..6b67b9f 100755 --- a/autojump +++ b/autojump @@ -75,8 +75,9 @@ except IOError: path_dict={} if ('-a','') in optlist: - dicadd(path_dict,args[-1]) - save(path_dict,dic_file) + 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]) + save(path_dict,dic_file) elif ('--stat','') in optlist: a=path_dict.items() a.sort(key=lambda e:e[1])