Created
May 27, 2017 18:27
-
-
Save gwpl/675f4f54e29b8c6ed5dfbbed465000e8 to your computer and use it in GitHub Desktop.
.bashrc PS1 colorful prompt # playing with tput to make variables using it... ("SEA" color is unfortunate, I should find better name for this color)
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
alias ls='ls --color=auto' | |
#export PS1='[\u@\h \W]\$ ' | |
#export PS1='\W\$ ' | |
#export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' | |
#export PS1='\[\033[01;34m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$' | |
#export PS1='\[\033[01;34m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[01;37m\]\$\[\033[00m\]' | |
PROMPT_RED="\[$(tput setaf 1)\]" | |
PROMPT_GREEN="\[$(tput setaf 2)\]" | |
PROMPT_ORANGE="\[$(tput setaf 3)\]" | |
PROMPT_NAVY="\[$(tput setaf 4)\]" | |
PROMPT_PINK="\[$(tput setaf 5)\]" | |
PROMPT_SEA="\[$(tput setaf 6)\]" | |
PROMPT_WHITE="\[$(tput setaf 7)\]" | |
PROMPT_GREY="\[$(tput setaf 8)\]" | |
PROMPT_BRIGHT_RED="\[$(tput setaf 9)\]" | |
PROMPT_BRIGHT_GREEN="\[$(tput setaf 10)\]" | |
PROMPT_BRIGHT_YELLOW="\[$(tput setaf 11)\]" | |
PROMPT_BRIGHT_NAVY="\[$(tput setaf 12)\]" | |
PROMPT_BRIGHT_PINK="\[$(tput setaf 13)\]" | |
PROMPT_BRIGHT_SEA="\[$(tput setaf 14)\]" | |
PROMPT_BRIGHT_WHITE="\[$(tput setaf 15)\]" | |
PROMPT_BOLD_LIGHT_GREEN="\[\033[01;32m\]" | |
PROMPT_BOLD_LIGHT_BLUE="\[\033[01;34m\]" | |
PROMPT_BOLD_LIGHT_SEA="\[\033[01;36m\]" | |
PROMPT_BOLD_LIGHT_WHITE="\[\033[01;37m\]" | |
PROMPT_RESET="\[$(tput sgr0)\]" | |
#export PS1="${PROMPT_GREEN}my prompt${PROMPT_RESET}> " | |
export PS1="${PROMPT_BOLD_LIGHT_BLUE}\u@\h${PROMPT_WHITE}:${PROMPT_BRIGHT_SEA}\w${PROMPT_BOLD_LIGHT_WHITE}\$${PROMPT_RESET} " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment