Skip to content

Instantly share code, notes, and snippets.

View orlovmyk's full-sized avatar
☘️

Mykyta Orlov orlovmyk

☘️
View GitHub Profile
@orlovmyk
orlovmyk / fish_right_prompt.fish
Created November 8, 2023 14:59 — forked from britishtea/fish_right_prompt.fish
My right prompt for the fish shell.
function fish_right_prompt -d "Write out the right prompt"
set -l exit_code $status
set -l is_git_repository (git rev-parse --is-inside-work-tree 2> /dev/null)
set -l max_shlvl 1; and test "$TERM" = "screen"; and set -l max_shlvl 2
# Print a fork symbol when in a subshell
if test $SHLVL -gt $max_shlvl
set_color yellow
echo -n "⑂ "
set_color normal