# Defined in /tmp/fish.N4kwkU/fish_prompt.fish @ line 2 function fish_prompt set -l git_branch (git branch ^/dev/null | sed -n '/\* /s///p') if test -n "$git_branch" -a (pwd) != /home/anton set git_branch " [$git_branch]" else set git_branch "" end if set -q fish_private_mode echo -n "🕶 " end if test -n "$IN_NIX_SHELL" set_color cyan if test "$name" != "shell" echo -n "$name " else echo -n "nix " end set_color normal end # set_color cyan echo -n (whoami) set_color normal echo -n '@' # set_color bryellow echo -n (hostname) if status is-interactive-job-control; and test (jobs | wc -l) -gt 0 set_color cyan echo -n " #"(jobs | wc -l) end set_color yellow echo -n "$git_branch" set_color green echo -n ' '(prompt_pwd) set_color normal echo ' > ' end