tidy up config.fish

master
Ben Harris 2020-10-07 19:29:49 -04:00
parent a1491fa7ed
commit 2e18d76700
1 changed files with 4 additions and 13 deletions

View File

@ -1,23 +1,14 @@
status --is-login; and status --is-interactive; and exec byobu-launcher status --is-login && status --is-interactive && exec byobu-launcher
if type -q nvim > /dev/null
set -xg EDITOR nvim
else
set -xg EDITOR vim
end
set -xg EDITOR vim
set -xg TZ 'America/Detroit' set -xg TZ 'America/Detroit'
if test -d ~/Maildir if test -d ~/Maildir
set -x MAIL ~/Maildir set -x MAIL ~/Maildir
end end
if test -d /usr/local/go for i in ~/bin ~/.yarn/bin ~/.local/bin ~/.cargo/bin
set -x GOPATH (/usr/local/go/bin/go env GOPATH) if test -d $i && not contains $i $PATH
end
for i in ~/bin /usr/local/go/bin ~/.yarn/bin $GOPATH/bin ~/.local/bin ~/.cargo/bin /snap/bin ~/.fzf/bin
if test -d $i; and not contains $i $PATH
set -x fish_user_paths $fish_user_paths $i set -x fish_user_paths $fish_user_paths $i
end end
end end