Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed bash_profile template

  • Loading branch information...
commit aa048533839055b213033e8165e435521f438861 1 parent d47ad9d
Michael Schiller authored
View
2  chef/site-cookbooks/server/templates/default/bash/bash_profile.erb
@@ -137,7 +137,7 @@ function _git_prompt() {
# Diese Funktion erweitert den Prompt mit den Daten aus den vorherigen Funktionen
function prompt_func(){
export PROMPT_COMMAND='history -a;echo -en "\033[m\033[38;5;2m"$(( `sed -nu "s/MemFree:[\t ]\+\([0-9]\+\) kB/\1/p" /proc/meminfo`/1024))"\033[38;5;22m/"$((`sed -nu "s/MemTotal:[\t ]\+\([0-9]\+\) kB/\1/Ip" /proc/meminfo`/1024 ))MB"\t\033[m\033[38;5;55m$(< /proc/loadavg)\033[m"'
- export PS1='\[\033[0;34m\]$(find_git_branch) \[\e[33m\]\w\[ \[\e[m\n\e[1;30m\][$$:$PPID \j:\!\[\e[1;30m\]]\[\e[0;36m\] \T \d \[\e[1;30m\][\[\e[1;34m\]\u@\H\[\e[1;30m\]:\[\e[0;37m\]${SSH_TTY} \[\e[0;32m\]+${SHLVL}\[\e[1;30m\]] \n($SHLVL:\!)\$ '
+ export PS1='\[\033[0;34m\]$(find_git_branch) \[\e[33m\]\w\[ \[\e[m\n\e[1;30m\][$$:$PPID \j:\!\[\e[1;30m\]]\[\e[0;36m\] \T \d \[\e[1;30m\][\[\e[1;34m\]\u@\H\[\e[1;30m\]:\[\e[0;37m\]${SSH_TTY} \[\e[0;32m\]+${SHLVL} \n($SHLVL:\!)\$ '
}
PROMPT_COMMAND=prompt_func
Please sign in to comment.
Something went wrong with that request. Please try again.