.bashrc
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
# color aliases | |
alias sudo='sudo ' | |
alias ls='ls --color=always' | |
alias dmesg='dmesg --color=always' | |
alias grep='grep --color=always' | |
alias gcc='gcc -fdiagnostics-color=always' | |
alias pacman='pacman --color=always' | |
alias dir='dir --color=always' | |
alias diff='diff --color=always' | |
# PS1 | |
INPUT_COLOR="\[\033[0m\]" | |
DIR_COLOR="\[\033[0;33m\]" | |
DIR="\w" | |
LINE_VERTICAL="\342\224\200" | |
LINE_CORNER_1="\342\224\214" | |
LINE_CORNER_2="\342\224\224" | |
LINE_COLOR="\[\033[0;37m\]" | |
USER_NAME="\[\033[0;32m\]\u" | |
SYMBOL="\[\033[0;32m\]$" | |
if [[ ${EUID} == 0 ]]; then | |
USER_NAME="\[\033[0;31m\]\u" | |
SYMBOL="\[\033[0;31m\]#" | |
fi | |
PS1="$LINE_COLOR$LINE_CORNER_1$LINE_VERTICAL $USER_NAME $DIR_COLOR$DIR \n$LINE_COLOR$LINE_CORNER_2$LINE_VERTICAL $SYMBOL $INPUT_COLOR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment