Крайний случай -Обнаружение ввода на STDIN в perl

@Christopher упомянул файл rc.conf.

https://github.com/ranger/ranger/blob/master/ranger/config/rc.conf

Естественно, вы можете отображать команды в файле конфигурации и вызывать их в Ranger:

% navigate to the rc.conf file
cd ~
cd./.config
cd./ranger
vim rc.conf % you may need to make this file

% add the following into the file and save with :wq
map gp shell -w read -p "Enter commit msg: " msg && git add -A && git commit -m "$msg" && git push -u origin master

map gc shell -w read -p "Enter org: " org && read -p "Enter repo: " repo && git clone http://YOURREPOADDRESSHERE/$org/$repo

В Ranger теперь вы можете нажать "gp" и клонировать с помощью "gc".

Для дальнейшего чтения см. также:https://superuser.com/questions/1048647/how-to-define-new-commands-in-the-ranger-file-manager

0
11.08.2021, 22:52
0 ответов

Теги

Похожие вопросы