From 7d8397966c303f4625aa587f9d9ea3e33a27c1eb Mon Sep 17 00:00:00 2001 From: appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> Date: Wed, 20 Jul 2022 09:38:23 +0200 Subject: [PATCH] Improve se alias --- .config/shell/aliasrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 8273a2f1..9147e082 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -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 \