diff --git a/dotfiles/fish/config.fish b/dotfiles/fish/config.fish index 3fe8df8..59884e4 100644 --- a/dotfiles/fish/config.fish +++ b/dotfiles/fish/config.fish @@ -15,9 +15,7 @@ if status is-interactive source {$__fish_config_dir}/keys.fish source {$__fish_config_dir}/tmux.fish source {$__fish_config_dir}/colors.fish - if test "$USER" != root - source {$__fish_config_dir}/plugins.fish - end + source {$__fish_config_dir}/plugins.fish end diff --git a/dotfiles/fish/plugins.fish b/dotfiles/fish/plugins.fish index 3ff2833..ca6a7d3 100644 --- a/dotfiles/fish/plugins.fish +++ b/dotfiles/fish/plugins.fish @@ -1,11 +1,13 @@ set -l NVM_URL "https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh" if not test -d "$NVM_DIR" + and test "$USER" != root set -e nvm_prefix mkdir -p "$NVM_DIR" curl -o- "$NVM_URL" | bash end if not functions -q fundle + and test "$USER" != root eval (curl -sfL https://git.io/fundle-install) end fundle plugin 'FabioAntunes/fish-nvm'