From f0af5dca69a34cba1466f175f9fe71f46a360af0 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Fri, 26 Apr 2024 15:08:38 +0400 Subject: [PATCH] stufff --- .bashrc | 1 + .local/bin/fzvim | 1 + 2 files changed, 2 insertions(+) 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