18 lines
583 B
Plaintext
18 lines
583 B
Plaintext
set previewer ~/.config/lf/preview
|
|
set cleaner ~/.config/lf/cleaner
|
|
set drawbox true
|
|
set icons true
|
|
|
|
cmd git_branch ${{
|
|
git branch | fzf | xargs git checkout
|
|
pwd_shell=$(pwd)
|
|
lf -remote "send $id updir"
|
|
lf -remote "send $id cd \"$pwd_shell\""
|
|
}}
|
|
map gb :git_branch
|
|
map gp ${{clear; git pull --rebase || true; echo "press ENTER"; read ENTER}}
|
|
map gs ${{clear; git status; echo "press ENTER"; read ENTER}}
|
|
map gl ${{clear; git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit}}
|
|
|
|
map D :delete
|