Commit 8efa2c35 authored by Nicholas Chambers's avatar Nicholas Chambers 👻

Prompt change

parent 9992fdb1
......@@ -59,6 +59,10 @@ if [[ -d ~/.rvm && -s ~/.rvm/scripts/rvm ]]; then
add_path ~/.rvm/bin
fi
if hash docker-machine 2>/dev/null; then
eval "$(docker-machine env)"
fi
###
# Happy Holidays
###
......@@ -133,20 +137,34 @@ fi
# Prompt
###
PROMPT_COMMAND='tput sgr0'
setup-prompt() {
tput sgr0
if [[ $SIMPLE_PROMPT = enable ]]; then
PS1='[\u@\h:\w]λ '
else
PS1='$(red "[\u@\h")$(purple :)$(green "\w"])'
if [[ -d .git ]]; then
git_branch=" $(git branch --show-current)"
else
git_branch=
fi
}
if [[ -v holiday ]]; then
PS1+='$holiday '
PROMPT_COMMAND=setup-prompt
PS1='\w$git_branch'
if [[ -v SSH_CLIENT ]]; then
if [[ -v HOSTNAME ]]; then
PS1+=' $HOSTNAME'
else
PS1+='$(purple \$) '
PS1+=' $(hostname)'
fi
fi
if [[ -v holiday ]]; then
PS1+=' $holiday '
else
PS1+=' λ '
fi
###
# Completion
###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment