Skip to content

Instantly share code, notes, and snippets.

@armiller
Created February 10, 2017 06:01
Show Gist options
  • Save armiller/a60000f986a78de7db9af942496f6754 to your computer and use it in GitHub Desktop.
Save armiller/a60000f986a78de7db9af942496f6754 to your computer and use it in GitHub Desktop.
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
}
function irc () {
ssh -t -q ash "screen -dr"
}
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
WHITE="\[\e[0;37m\]"
if [[ $EUID == 0 ]] ; then
PS1="$RED\u@\h $WHITE\w$RED # $NORMAL"
else
PS1="$NORMAL\u@\h$NORMAL:\w$NORMAL $ $NORMAL"
fi
export EDITOR=vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment