fish: root prompt with #
This commit is contained in:
parent
39c260a4ac
commit
646c43f8d7
@ -1,3 +1,7 @@
|
|||||||
|
if test -z "$SYSTEM_PROFILE"
|
||||||
|
set -gx SYSTEM_PROFILE SLIM
|
||||||
|
end
|
||||||
|
|
||||||
source ~/.config/fish/aliases.fish
|
source ~/.config/fish/aliases.fish
|
||||||
|
|
||||||
# Set GPG_TTY
|
# Set GPG_TTY
|
||||||
|
@ -41,5 +41,10 @@ function fish_right_prompt
|
|||||||
(set_color normal)
|
(set_color normal)
|
||||||
end
|
end
|
||||||
function fish_prompt
|
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
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user