Files
Basalt2/node_modules/shiki/samples/fish.sample
Robert Jelic 5c15cf28fa Test
2025-02-10 07:12:35 +01:00

14 lines
418 B
Plaintext

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