kjelsrud.dev/node_modules/shiki/samples/fish.sample

14 lines
418 B
Text
Raw Normal View History

2023-07-19 21:31:30 +02:00
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