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

simplify default path

This commit is contained in:
William Ting 2014-03-21 18:56:23 -05:00
parent 72313dbc51
commit bc91905a29

View File

@ -382,8 +382,7 @@ def main(args): # noqa
elif args.stat: elif args.stat:
print_stats(load(config), config['data_path']) print_stats(load(config), config['data_path'])
elif not args.directory: elif not args.directory:
# default return value so calling shell functions have an argument # always return a path to calling shell functions
# to `cd` to
print_local('.') print_local('.')
else: else:
entries = entriefy(load(config)) entries = entriefy(load(config))
@ -404,8 +403,8 @@ def main(args): # noqa
first( first(
chain( chain(
find_matches(entries, needles), find_matches(entries, needles),
# always return n argument to calling shell functions # always return a path to calling shell functions
[Entry('.', 0)])).path) ['.'])))
return 0 return 0