From 12527d71ea8b0921b910afa6bcd5fc6adf9649eb Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 2 Aug 2022 05:07:11 -0400 Subject: start using lua :) --- .config/fish/config.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.config/fish/config.fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index d3a8372..45cca36 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -4,6 +4,7 @@ function set_envvars + # add user bin directory to path if test -d "$HOME/.local/bin" fish_add_path "$HOME/.local/bin" end @@ -25,6 +26,9 @@ function set_envvars # paths set -gx CARGO_HOME "$XDG_DATA_HOME/cargo" + if test -d "$CARGO_HOME" + fish_add_path "$CARGO_HOME/bin" + end set -gx RUSTUP_HOME "$XDG_DATA_HOME/rustup" set -gx LESSHISTFILE "$XDG_STATE_HOME/less/history" set -gx NPM_CONFIG_USERCONFIG "$XDG_CONFIG_HOME/npm/npmrc" @@ -33,11 +37,14 @@ end function load_plugins #starship init fish | source + if not test -f "$XDG_CONFIG_HOME/fish/functions/fisher.fish" + echo 'bootstrapping fisher' + curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher + end end if status is-login set_envvars - load_plugins else if status is-interactive load_plugins end -- cgit v1.2.3