From 53ed911c70505383adde72db6f5e45b3cf314a5a Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Tue, 21 Jul 2026 13:42:48 +0200 Subject: [PATCH] chore(fish): prefer neovim for editor commands --- .config/fish/config.fish | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 21ee6fd..bd5fb85 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,26 +1,31 @@ starship init fish | source set fish_greeting "" +# Prefer Neovim for both explicit and editor-variable invocations. +alias vim nvim +set -gx EDITOR nvim +set -gx VISUAL nvim + # pyenv setup while set pyenv_index (contains -i -- "/home/alex/.pyenv/shims" $PATH) -set -eg PATH[$pyenv_index]; end; set -e pyenv_index + set -eg PATH[$pyenv_index] +end +set -e pyenv_index set -gx PATH '/home/alex/.pyenv/shims' $PATH set -gx PYENV_SHELL fish command pyenv rehash 2>/dev/null function pyenv - set command $argv[1] - set -e argv[1] + set command $argv[1] + set -e argv[1] - switch "$command" - case rehash shell - source (pyenv "sh-$command" $argv|psub) - case "*" - command pyenv "$command" $argv - end + switch "$command" + case rehash shell + source (pyenv "sh-$command" $argv|psub) + case "*" + command pyenv "$command" $argv + end end - - # bun set --export BUN_INSTALL "$HOME/.bun" set --export PATH $BUN_INSTALL/bin $PATH