Last active
May 10, 2017 06:13
-
-
Save sq3/57e4b475feca919e9797529146e52aa3 to your computer and use it in GitHub Desktop.
This file contains 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
[[ $- != *i* ]] && return | |
alias ls='ls --color=auto' | |
alias l='ls -lahtr --color=auto --time-style="+ %F %H:%M │ "' | |
alias ll='ls -l --color=auto --time-style="+ %F %H:%M │ "' | |
alias grep='grep --color=auto' | |
export PS1="\[\u@$(hostname -f): \w\]\n\$ " | |
[ -e "/etc/DIR_COLORS" ] && DIR_COLORS="/etc/DIR_COLORS" | |
[ -e "$HOME/.dircolors" ] && DIR_COLORS="$HOME/.dircolors" | |
[ -e "$DIR_COLORS" ] || DIR_COLORS="" | |
eval "`dircolors -b $DIR_COLORS`" | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
export MANWIDTH=75 | |
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[0;37;102m") \ | |
LESS_TERMCAP_ue=$(printf "\e[0m") \ | |
LESS_TERMCAP_us=$(printf "\e[4;32m") \ | |
PAGER=/usr/bin/less \ | |
_NROFF_U=1 \ | |
PATH=${HOME}/bin:${PATH} \ | |
man "$@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment