kjelsrud.dev/node_modules/shiki/samples/fish.sample
2023-07-19 21:31:30 +02: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