add sudo -e bind
This commit is contained in:
parent
c961767c8d
commit
921ab05d42
1 changed files with 11 additions and 0 deletions
|
@ -20,6 +20,16 @@ cmd open ${{
|
|||
|
||||
cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')"
|
||||
|
||||
cmd edit !{{
|
||||
clear
|
||||
if [ -w $f ]; then
|
||||
$EDITOR $f
|
||||
else
|
||||
sudo -e $f
|
||||
fi
|
||||
clear
|
||||
}}
|
||||
|
||||
cmd extract ${{
|
||||
clear; tput cup $(($(tput lines)/3)); tput bold
|
||||
set -f
|
||||
|
@ -152,6 +162,7 @@ map <esc> quit
|
|||
map N
|
||||
map g/ cd "/"
|
||||
map W &setsid $TERMINAL -e $SHELL -c "lf; $SHELL"
|
||||
map e edit
|
||||
|
||||
# Load bookmark shortcuts
|
||||
source "~/.config/lf/shortcutrc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue