This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |