27 lines
607 B
Bash
27 lines
607 B
Bash
# .bashrc
|
|
|
|
# User exports
|
|
DISTRO=`cat /etc/os-release | grep "^NAME" | grep -oP '(?<=").*(?= )'`
|
|
|
|
# User specific aliases and functions
|
|
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
|
|
# Source global definitions
|
|
if [ -f /etc/bashrc ]; then
|
|
. /etc/bashrc
|
|
fi
|
|
|
|
# Colors
|
|
BLACK="\[$(tput setaf 0)\]"
|
|
RED="\[$(tput setaf 1)\]"
|
|
GREEN="\[$(tput setaf 2)\]"
|
|
BROWN="\[$(tput setaf 3)\]"
|
|
BLUE="\[$(tput setaf 4)\]"
|
|
PURPLE="\[$(tput setaf 5)\]"
|
|
TEAL="\[$(tput setaf 6)\]"
|
|
GREY="\[$(tput setaf 7)\]"
|
|
RESET="\[$(tput sgr0)\]"
|
|
|
|
export PS1="${GREEN}\u${RESET}@${GREEN}\h ($DISTRO) ${TEAL}\W${RESET}\$ "
|