Created
May 23, 2016 19:39
-
-
Save gcamp806/212ab03b8630db637974de09f74056fe to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
function __prompt | |
{ | |
# List of color variables that bash can use | |
local BLACK="\[\033[0;30m\]" # Black | |
local DGREY="\[\033[1;30m\]" # Dark Gray | |
local RED="\[\033[0;31m\]" # Red | |
local LRED="\[\033[1;31m\]" # Light Red | |
local GREEN="\[\033[0;32m\]" # Green | |
local LGREEN="\[\033[1;32m\]" # Light Green | |
local BROWN="\[\033[0;33m\]" # Brown | |
local YELLOW="\[\033[1;33m\]" # Yellow | |
local BLUE="\[\033[0;34m\]" # Blue | |
local LBLUE="\[\033[1;34m\]" # Light Blue | |
local PURPLE="\[\033[0;35m\]" # Purple | |
local LPURPLE="\[\033[1;35m\]" # Light Purple | |
local CYAN="\[\033[0;36m\]" # Cyan | |
local LCYAN="\[\033[1;36m\]" # Light Cyan | |
local LGREY="\[\033[0;37m\]" # Light Gray | |
local WHITE="\[\033[1;37m\]" # White | |
local RESET="\[\033[0m\]" # Color reset | |
local BOLD="\[\033[1m\]" # Bold | |
# Set user prompt | |
PS1="$LCYAN\h:$YELLOW\w$RESET \\\$ " | |
# Set root prompt | |
#PS1="$LGREEN\h:$YELLOW\w$RESET \\\$ " | |
} | |
#if [[ -z "$PROMPT_COMMAND" ]]; then | |
# PROMPT_COMMAND=__prompt | |
#else | |
# PROMPT_COMMAND="$PROMPT_COMMAND ; __prompt" | |
#fi | |
__prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment