Skip to content

Instantly share code, notes, and snippets.

@sq3
Last active May 10, 2017 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sq3/57e4b475feca919e9797529146e52aa3 to your computer and use it in GitHub Desktop.
Save sq3/57e4b475feca919e9797529146e52aa3 to your computer and use it in GitHub Desktop.
[[ $- != *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