13 lines
260 B
Plaintext
Raw Normal View History

2024-04-23 08:52:28 +04:00
#!/bin/bash
2024-04-23 13:24:45 +04:00
# stands for fuzzy vim
2024-04-23 08:52:28 +04:00
2024-04-23 13:46:16 +04:00
selected_path="$(find ~/Code/ ~/.local/bin/ ~/.config/ -maxdepth 2 -type d -not -path '*/\.git*' -print | fzf)"
2024-04-23 08:52:28 +04:00
2024-04-23 13:24:45 +04:00
if [ ! -z "${selected_path}" ]
2024-04-23 08:52:28 +04:00
then
2024-04-23 13:24:45 +04:00
echo "${selected_path}"
2024-04-26 15:08:38 +04:00
cd "$selected_path"
2024-04-23 13:24:45 +04:00
nvim "${selected_path}"
2024-04-23 08:52:28 +04:00
fi