diff --git a/src/.config/fish/config.fish b/src/.config/fish/config.fish index d2d224b..2d491c6 100644 --- a/src/.config/fish/config.fish +++ b/src/.config/fish/config.fish @@ -1,3 +1,7 @@ +if test -z "$SYSTEM_PROFILE" + set -gx SYSTEM_PROFILE SLIM +end + source ~/.config/fish/aliases.fish # Set GPG_TTY diff --git a/src/.config/fish/functions/prompts.fish b/src/.config/fish/functions/prompts.fish index f2ad31d..20b2452 100644 --- a/src/.config/fish/functions/prompts.fish +++ b/src/.config/fish/functions/prompts.fish @@ -41,5 +41,10 @@ function fish_right_prompt (set_color normal) end function fish_prompt - printf '%s%s%s> ' (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) + if fish_is_root_user + set letter '#' + else + set letter '>' + end + printf '%s%s%s%s ' (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) $letter end