Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

autojump will not remember home dir (may be in conflict with other di…

…rectory)
  • Loading branch information...
commit e86f8a537dc4de86b1211d238ba28b90312338e7 1 parent 904fc8b
Simon Marache-Francisco authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 autojump
View
5 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])
Please sign in to comment.
Something went wrong with that request. Please try again.