update dotfiles: nvim, zsh, bash improvements and other stuff

This commit is contained in:
2018-05-06 09:34:20 +02:00
parent 5ef18b7a9d
commit eccd0efc00
17 changed files with 93 additions and 76 deletions

View File

@ -30,19 +30,22 @@ source ~/.config/aliases
exitstatus()
{
if [[ $? == 0 ]]; then
echo ''
#echo -e ''
echo -e '\033[0;32m➜\033[0m '
else
echo '! '
#echo -e '\033[0;31m✗ '
echo -e '\033[0;31m➜\033[0m '
fi
}
user()
{
if [[ $USER == 'roman' ]]; then
echo ''
echo -e ''
else
echo '\u@\h '
echo -e '\u@\h '
fi
}
PS1='[$(exitstatus)$(user)\w]\$ '
#PS1='[$(exitstatus)$(user)\w]\$ '
PS1='$(exitstatus) \[\033[1;36m\]\W\[\033[0m\] '