diff --git a/.bash/prompt b/.bash/prompt index afb5a9a..b191649 100644 --- a/.bash/prompt +++ b/.bash/prompt @@ -70,7 +70,7 @@ rewrite_prompt() [ $UID -eq "0" ] && UC=$R # root's color # rewrite prompt - PS1="[\\t] ${G}\u@\h> \${NEW_PWD} ${C}\$(git_branch)\${NONE}${NONE}\n$ " + PS1="\${__prompt_environment}[\\t] ${G}\u@\h> \${NEW_PWD} ${C}\$(git_branch)\${NONE}${NONE}\n$ " } # adds ~/.ssh/config to the ssh autocomplete diff --git a/.bash_profile b/.bash_profile index 09f144c..356d4d9 100644 --- a/.bash_profile +++ b/.bash_profile @@ -6,3 +6,4 @@ for file in ~/.bash/{shell,commands,prompt,aliases}; do done; unset file; +[ -f ~/.bash_environment ] && source ~/.bash_environment; diff --git a/install.sh b/install.sh index 424cb49..ef03b9c 100755 --- a/install.sh +++ b/install.sh @@ -90,5 +90,9 @@ for sourceFile in .*; do ln -vs "$PWD/$sourceFile" "$targetFile"; done; +touch ~/.bash_environment; +read -p "Please, enter your environment: "; +echo -e "export __prompt_environment='[$REPLY] '" | tee ~/.bash_environment > /dev/null; + echo "Done.";