Skip to content

Commit

Permalink
Merge pull request #199 from doronz88/feature/improved_ps
Browse files Browse the repository at this point in the history
xonshrc: use `/bin/ps` when possible
  • Loading branch information
doronz88 authored Jul 14, 2022
2 parents cbb3422 + 2500517 commit 663c500
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpcclient/rpcclient/xonshrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ def _rpc_connect(self):
# -- processes
self._register_rpc_command('run', self._rpc_run)
self._register_rpc_command('run-async', self._rpc_run_async)
self._register_arg_parse_alias('ps', self._rpc_ps)
if self.client.fs.accessible('/bin/ps'):
XSH.aliases['ps'] = 'run ps'
else:
self._register_arg_parse_alias('ps', self._rpc_ps)
self._register_arg_parse_alias('kill', self._rpc_kill)
self._register_arg_parse_alias('killall', self._rpc_killall)

Expand Down

0 comments on commit 663c500

Please sign in to comment.