Improve se alias

This commit is contained in:
appeasementPolitik 2022-07-20 09:38:23 +02:00 committed by GitHub
parent 8f2810ac20
commit 7d8397966c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
alias $command="sudo $command"
done; unset command
se() { cd ~/.local/bin; $EDITOR $(fzf) ;}
se() { curdir=$(pwd); cd ~/.local/bin; selection=$(fzf); [ -n "$selection" ] && $EDITOR "$selection" ; cd "$curdir" ;}
# Verbosity and settings that you pretty much just always are going to want.
alias \