Skip to content

Commit

Permalink
Merge pull request #316 from doronz88/bugfix/xonshrc-fzf
Browse files Browse the repository at this point in the history
xonshrc: fix fzf conflicts
  • Loading branch information
doronz88 authored Nov 19, 2023
2 parents 8a0a8f9 + a35def5 commit a6de53a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rpcclient/rpcclient/xonshrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ def _rpc_connect(self):

# clear all host commands except for some useful ones
XSH.env['PATH'].clear()
for cmd in ['wc', 'grep', 'egrep', 'sed', 'awk', 'print', 'yes', 'cat']:
for cmd in ['wc', 'grep', 'egrep', 'sed', 'awk', 'print', 'yes', 'cat', 'file']:
executable = shutil.which(cmd)
if executable is not None:
self._register_rpc_command(cmd, executable)
self._register_rpc_command(cmd.strip(), executable)

# -- rpc
self._register_arg_parse_alias('rpc-disconnect', self._rpc_disconnect)
Expand Down Expand Up @@ -693,10 +693,10 @@ def _push(self, local_filename, remote_filename):

# actual RC contents
XSH.aliases['xontrib']('load z argcomplete coreutils fzf-widgets jedi'.split())
XSH.env['fzf_history_binding'] = "c-r" # Ctrl+R
XSH.env['fzf_ssh_binding'] = "c-s" # Ctrl+S
XSH.env['fzf_file_binding'] = "c-t" # Ctrl+T
XSH.env['fzf_dir_binding'] = "c-g" # Ctrl+G
XSH.env['fzf_history_binding'] = "" # Ctrl+R
XSH.env['fzf_ssh_binding'] = "" # Ctrl+S
XSH.env['fzf_file_binding'] = "" # Ctrl+T
XSH.env['fzf_dir_binding'] = "" # Ctrl+G

rc = XonshRc()
XSH.env['rpc'] = rc.client
Expand Down

0 comments on commit a6de53a

Please sign in to comment.