Compare commits
No commits in common. "4360067486f9c054022fe77986c357e046a83fb4" and "bc00f7a310a923392911579d46832617796d94a8" have entirely different histories.
4360067486
...
bc00f7a310
12
bash/.bashrc
12
bash/.bashrc
@ -22,21 +22,9 @@ fi
|
||||
|
||||
|
||||
export PS1="${green}\$${no_color} "
|
||||
export DIRENV_PS1="${red}\$${no_color} "
|
||||
if [ "${HOSTNAME}" != "crypt" ] && [ "${HOSTNAME}" != "tomb" ] || [ "${SSH_TTY}" != "" ]; then
|
||||
PS1="${PS1}${blue}${HOSTNAME} ${PS1}"
|
||||
DIRENV_PS1="${PS1}${blue}${HOSTNAME} ${PS1}"
|
||||
fi
|
||||
export ORIG_PS1=${PS1}
|
||||
|
||||
update_prompt() {
|
||||
if direnv status | grep -iq 'RC allowed true'; then
|
||||
PS1=${DIRENV_PS1}
|
||||
else
|
||||
PS1=${ORIG_PS1}
|
||||
fi
|
||||
}
|
||||
PROMPT_COMMAND="update_prompt; $PROMPT_COMMAND"
|
||||
|
||||
# Continuation Prompt: "> " in cyan
|
||||
export PS2="${cyan}>${no_color} "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user