1
0
Fork 0

bashrc, zshrc: some syntax altered; tmux.conf, xresources: some tweaks; vimplugrc: get rid of some plugins, bring back gvim

This commit is contained in:
Von Random 2021-02-10 21:52:02 +03:00
parent 8ed77f7db4
commit ea9ede6627
5 changed files with 30 additions and 39 deletions

12
bashrc
View file

@ -22,8 +22,8 @@ prompt_command() {
esac
}
((UID)) && ps_clr=4 || ps_clr=1
# just a colored version of [ $USER@$HOSTNAME:~ ]
PS1='\[\e[47;30m\][ \[\e[3'"$ps_clr"'m\]\u\[\e[30m\] \h:\[\e[32m\w\[\e[30m\] ]\[\e[0m\]\n\$ '
# just a colored version of [ $USER $HOSTNAME:$CWD ]
printf -v PS1 '\\[\\e[0m\\][ \\[\\e[3%sm\\]\\u\\[\\e[0m\\] \\h:\\[\\e[32m\\w\\[\\e[0m\\] ]\n\\$ ' $ps_clr
unset ps_clr
PROMPT_COMMAND=prompt_command
# }}}
@ -92,14 +92,6 @@ gdf() {
gdiff "$@"
fi
}
# more compatible TERM for ssh sessions
s() {
if termcompat=$(command -v termcompat); then
"$termcompat" ssh "$@"
else
ssh "$@"
fi
}
# we want to see exit code on error (it also has to be the last entry here)
trap_msg='\e[31m>>\e[0m exit \e[31m%s\e[0m\n'
trap 'printf "$trap_msg" "$?" >&2' ERR