fish: fix promp for root

This commit is contained in:
lelgenio 2022-02-27 20:39:18 -03:00
parent 994400fe3f
commit c43a2b64d6
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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'