fish: fix promp for root
This commit is contained in:
parent
994400fe3f
commit
c43a2b64d6
|
@ -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
|
||||
|
||||
end
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Reference in New Issue