better profile handling
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# PATH
|
||||
fish_add_path $HOME/go/bin
|
||||
fish_add_path $HOME/.cargo/bin
|
||||
fish_add_path $HOME/.local/scripts
|
||||
fish_add_path $HOME/.local/bin
|
||||
fish_add_path $HOME/.cargo/bin
|
||||
fish_add_path $HOME/go/bin
|
||||
|
||||
# man
|
||||
if type -q bat
|
||||
@@ -10,10 +10,18 @@ if type -q bat
|
||||
set -x -g MANROFFOPT -c
|
||||
end
|
||||
|
||||
# nvim
|
||||
if type -q nvim
|
||||
set -x -g EDITOR nvim
|
||||
set -x -g VISUAL nvim
|
||||
# Editor
|
||||
for app in helix nvim vim vi nano
|
||||
if type -q $app
|
||||
set -x -g EDITOR $app
|
||||
set -x -g VISUAL $app
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
# Create shortcut alias for helix
|
||||
if type -q helix; and not type -q hx
|
||||
alias hx helix
|
||||
end
|
||||
|
||||
# gpg
|
||||
|
||||
Reference in New Issue
Block a user