Skip to content

Commit

Permalink
Update jump_to_dir.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored Feb 22, 2024
1 parent f625ac7 commit daf17e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xontrib/jump_to_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ def _jump_to_dir(args, search_column='cwd'):

return 0 if success else 1

aliases['j'] = functools.partial(_jump_to_dir, search_column='cwd')
aliases['jc'] = functools.partial(_jump_to_dir, search_column='inp')
c = __xonsh__.env.get('XONTRIB_JUMP_TO_DIR_SHORTCUT', 'j')
aliases[c] = functools.partial(_jump_to_dir, search_column='cwd')
aliases[c+'c'] = functools.partial(_jump_to_dir, search_column='inp')

elif __xonsh__.env.get('XONTRIB_JUMP_TO_DIR_WARNING', True):
print(f"xontrib-jump-to-dir: You're using {_hist_backend} for history backend. It's not supported for jump.")
Expand Down

0 comments on commit daf17e2

Please sign in to comment.