This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/fish/plugins.fish

83 lines
1.9 KiB
Fish

# {{@@ header() @@}}
##################################################
# fundle fish plugin manager
##################################################
if not functions -q fundle
and test "$USER" != root
eval (curl -sfL https://git.io/fundle-install)
end
# fundle plugin 'FabioAntunes/fish-nvm'
fundle plugin 'edc/bass'
fundle init
################################################################
# Source .env files
################################################################
command -qs direnv &&
direnv hook fish | source
##################################################
# asdf Version manager
##################################################
if not test -d ~/.asdf
and test "$USER" != root
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0
mkdir -p ~/.config/fish/completions
and ln -s ~/.asdf/completions/asdf.fish ~/.config/fish/completions
source ~/.asdf/asdf.fish
asdf plugin add nodejs
asdf install nodejs 12.13.1
asdf install nodejs latest
asdf global nodejs latest
asdf plugin-add yarn
asdf install yarn latest
asdf global yarn latest
asdf plugin add rust
asdf install rust nightly
asdf global rust nightly
end
test -f ~/.asdf/asdf.fish
and source ~/.asdf/asdf.fish
##################################################
# Rust tools
##################################################
command -qs sccache
or _install-sccache &> /dev/null &
# set -x RUSTC_WRAPPER sccache
command -qs rust-analyzer
or _install-rust-analyzer &> /dev/null &
command -qs trunk
or _install-trunk &> /dev/null &
command -qs diesel
and diesel completions fish | source
##################################################
# Prompt
##################################################
{%@@ if starship @@%}
starship init fish | source
# Set cursor shape
printf '\e[5 q' # Bar
{%@@ else @@%}
source {$__fish_config_dir}/prompt.fish
{%@@ endif @@%}