Urara-Blog/node_modules/.pnpm-store/v3/files/50/96bc2def315db63ebdb2bed07071499fe7a763b02ef3f8f17c149b5d1e0d11b7bab1b4f1584b8569d6b72c50ea8d8a04a13943eeabb2b2072bc2f5b1d64fd4
2022-08-14 01:14:53 +08:00

13 lines
418 B
Text

function fish_prompt
# A simple prompt. Displays the current directory
# (which fish stores in the $PWD variable)
# and then a user symbol - a '►' for a normal user and a '#' for root.
set -l user_char '►'
if fish_is_root_user
set user_char '#'
end
echo (set_color yellow)$PWD (set_color purple)$user_char
end
# From https://fishshell.com/docs/current/language.html#functions