Created
February 10, 2017 06:01
-
-
Save armiller/a60000f986a78de7db9af942496f6754 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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