zoxide wrapper

This commit is contained in:
parent 5cf11e3a2c
commit 38c7db18cf
3 changed files with 14 additions and 0 deletions

0
scripts/.zsh_history Normal file
View File

0
scripts/install.sh Normal file
View File

14
scripts/nvim-zoxide-wrapper.sh Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env zsh
if [ -z "$1" ]; then
nvim
else
if [ -f "$1" ]; then
nvim $1
else
eval "$(zoxide init --cmd cd zsh)"
cd $1
nvim .
fi
fi