是否可以"负载";在Ranger的.bashrc或任何.sh文件中定义的自定义命令
要通过ranger命令栏访问这些命令吗
类似于
:mycustomcommand arg1 argr2
或
;shell mycustomccommand arg1 arg2
或者
我需要用python重新创建这些,并使用Ranger的API?
是的,有,但您不会看到命令的输出:
:shell *your command and arguments here*
或者只需按下@
手册页还包括添加暂停以检查命令输出:
FLAGS
There are some additional flags that can currently be used
only in the "shell" command: (for example ":shell -w df")
p Redirect output to the pager
s Silent mode. Output will be discarded.
w Wait for an Enter-press when the process is done
顺便说一句,这个问题在这里得到了回答。