Skip to content

Instantly share code, notes, and snippets.

@user9931
Created February 6, 2025 12:13
Show Gist options
  • Save user9931/061a8eabb30bcde896c93f528aa9b390 to your computer and use it in GitHub Desktop.
Save user9931/061a8eabb30bcde896c93f528aa9b390 to your computer and use it in GitHub Desktop.
# for bash
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
## COLOR
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto -l'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias dir='dir --color=auto'
fi
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
alias ip='ip -c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment