zoxide wrapper
This commit is contained in:
parent
5cf11e3a2c
commit
38c7db18cf
0
scripts/.zsh_history
Normal file
0
scripts/.zsh_history
Normal file
0
scripts/install.sh
Normal file
0
scripts/install.sh
Normal file
14
scripts/nvim-zoxide-wrapper.sh
Executable file
14
scripts/nvim-zoxide-wrapper.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user