diff --git a/scripts/.zsh_history b/scripts/.zsh_history new file mode 100644 index 0000000..e69de29 diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100644 index 0000000..e69de29 diff --git a/scripts/nvim-zoxide-wrapper.sh b/scripts/nvim-zoxide-wrapper.sh new file mode 100755 index 0000000..7e5983f --- /dev/null +++ b/scripts/nvim-zoxide-wrapper.sh @@ -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