feat: Improve yazi

This commit is contained in:
Fabio Lenherr / DashieTM 2024-03-12 02:46:53 +01:00
parent 17b2b630af
commit 4bb15d851e
14 changed files with 782 additions and 377 deletions

View file

@ -14,6 +14,18 @@ function sudo --description "Replacement for Bash 'sudo !!' command to run last
command sudo $argv
end
end
function y
set tmp (mktemp -t "yazi-cwd.XXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
cd -- "$cwd"
end
rm -- "$tmp"
end
set EDITOR "neovide --no-fork"
alias ls='lsd'
alias :q='exit'
alias gh='git push origin'