Files
ubuntu-fish-dotfiles/fish/theme-t31m/t31m_prompt.fish
2020-04-16 16:46:23 +02:00

27 lines
582 B
Fish

function prompt::awsenv
if test -n "$env"
if [ $env = "prod" ]
echo -n -s (yellow)"["(red)"$env"(yellow)"]"(off)
else
echo -n -s (yellow)"["(off)"$env"(yellow)"]"(off)
end
end
end
function prompt::pyenv
if test -n "$PYENV_VERSION"
echo -n -s (yellow)"["(cyan)"$PYENV_VERSION"(yellow)"]"(off)
end
end
function t31m_prompt
set awsenv (prompt::awsenv)
set pyenv (prompt::pyenv)
#echo -n -s (red)"$awsenv"(cyan)"$pyenv"
echo -n -s "$pyenv"
printf '%s ' \U2601
echo -n -s "$awsenv"
end