Files
ubuntu-fish-dotfiles/fish/theme-t31m/t31m_prompt.fish
2020-03-07 19:22:06 +01:00

25 lines
540 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$awsenv"
end