dotfiles-test/scripts/nvim-zoxide-wrapper.sh
2024-09-17 13:24:32 +03:00

15 lines
188 B
Bash
Executable File

#!/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