1
0
Fork 0

add sudo -e bind

This commit is contained in:
Luca Bilke 2023-06-07 00:45:58 +02:00
parent c961767c8d
commit 921ab05d42

View file

@ -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"