diff --git a/.bashrc b/.bashrc index 2330476..ada6f2d 100644 --- a/.bashrc +++ b/.bashrc @@ -130,3 +130,4 @@ alias vscode="echo 'I WILL KILL YOU RIGHT NOW'" alias vim="nvim" alias nsxiv="nsxiv -ap" alias cal="cal -3 -m" +alias fzvim=". fzvim" diff --git a/.local/bin/fzvim b/.local/bin/fzvim index 4e72f9b..8219d36 100755 --- a/.local/bin/fzvim +++ b/.local/bin/fzvim @@ -7,5 +7,6 @@ selected_path="$(find ~/Code/ ~/.local/bin/ ~/.config/ -maxdepth 2 -type d -not if [ ! -z "${selected_path}" ] then echo "${selected_path}" + cd "$selected_path" nvim "${selected_path}" fi