chore(fish): prefer neovim for editor commands
This commit is contained in:
+16
-11
@@ -1,26 +1,31 @@
|
|||||||
starship init fish | source
|
starship init fish | source
|
||||||
set fish_greeting ""
|
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
|
# pyenv setup
|
||||||
while set pyenv_index (contains -i -- "/home/alex/.pyenv/shims" $PATH)
|
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 PATH '/home/alex/.pyenv/shims' $PATH
|
||||||
set -gx PYENV_SHELL fish
|
set -gx PYENV_SHELL fish
|
||||||
command pyenv rehash 2>/dev/null
|
command pyenv rehash 2>/dev/null
|
||||||
function pyenv
|
function pyenv
|
||||||
set command $argv[1]
|
set command $argv[1]
|
||||||
set -e argv[1]
|
set -e argv[1]
|
||||||
|
|
||||||
switch "$command"
|
switch "$command"
|
||||||
case rehash shell
|
case rehash shell
|
||||||
source (pyenv "sh-$command" $argv|psub)
|
source (pyenv "sh-$command" $argv|psub)
|
||||||
case "*"
|
case "*"
|
||||||
command pyenv "$command" $argv
|
command pyenv "$command" $argv
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# bun
|
# bun
|
||||||
set --export BUN_INSTALL "$HOME/.bun"
|
set --export BUN_INSTALL "$HOME/.bun"
|
||||||
set --export PATH $BUN_INSTALL/bin $PATH
|
set --export PATH $BUN_INSTALL/bin $PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user