zoxide wrapper
This commit is contained in:
parent
6b9d3a52a8
commit
1febc6d818
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