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 committed May 15, 2024
1 parent 7cebbb8 commit 90844b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xontrib/jump_to_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def _jump_to_dir(args, search_column='cwd', shortcut='j'):
return 0 if success else 1

_sc = __xonsh__.env.get('XONTRIB_JUMP_TO_DIR_SHORTCUT', 'j')
aliases[_sc] = functools.partial(_jump_to_dir, search_column='cwd', shortcut=_sc)
aliases[_sc+'c'] = functools.partial(_jump_to_dir, search_column='inp', shortcut=_sc)
aliases[_sc] = lambda args: _jump_to_dir(args, search_column='cwd', shortcut=_sc)
aliases[_sc+'c'] = lambda args: _jump_to_dir(args, search_column='inp', shortcut=_sc)

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 90844b6

Please sign in to comment.