tmux-dev-env-configuration/dotfiles/.config/fish/config.fish

30 lines
1.1 KiB
Fish

#-------------------------------------------------------------------------------
# Fish Configuration
# Started September 14th 2020 by Shawn Anderson
#
# This configuration heavily integrates fish with vim, tmux, fzf, and other
# powerful commandline tools. It's interactive computing for effective
# workflow.
#-------------------------------------------------------------------------------
source ~/.config/fish/config/abbr.fish
source ~/.config/fish/config/keys.fish
source ~/.config/fish/config/plugins.fish
source ~/.config/fish/config/programs.fish
set -gx GOPATH $HOME/go; set -gx GOROOT $HOME/.go; set -gx PATH $GOPATH/bin $PATH; # g-install: do NOT edit, see https://github.com/stefanmaric/g
export PATH="$PATH:/home/ygg/.foundry/bin"
# Automatically Load Latest Node Version from NVM
function nvm_use_latest --description 'Use latest Node.js version'
set -l latest_nvm_node (nvm list | grep -o 'v[0-9.]*' | sort -V | tail -n1)
if test -n "$latest_nvm_node"
nvm use $latest_nvm_node
else
echo "No Node.js version found in nvm."
end
end
nvm_use_latest >/dev/null ^&1