update: formatting, cleanup & order

This commit is contained in:
=
2020-03-07 19:22:06 +01:00
parent 06f373d5e9
commit e48b226951
4 changed files with 13 additions and 53 deletions

View File

@ -1,20 +1,24 @@
# by T31M
function prompt::awsenv
if test -n "$env"
echo -n -s "[aws=$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 "[$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 (red)"$awsenv"(cyan)"$pyenv"
echo -n -s "$pyenv$awsenv"
end