Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Add pwd to PS1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kottler committed Jul 6, 2014
1 parent 03ee0d7 commit e7a69a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Expand Up @@ -264,7 +264,7 @@ GRAPH
slack_handler (>= 0.0.0)
rubygems-ntp (0.0.1)
ntp (>= 0.0.0)
rubygems-people (0.0.18)
rubygems-people (0.0.19)
sudo (>= 0.0.0)
user (>= 0.0.0)
rubygems-redis (0.0.3)
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/rubygems-people/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer 'RubyGems.org Ops Team'
license 'MIT'
description 'RubyGems user recipes'
version '0.0.18'
version '0.0.19'

depends 'user'
depends 'sudo'
Expand Down
4 changes: 2 additions & 2 deletions cookbooks/rubygems-people/templates/default/bashrc.erb
Expand Up @@ -52,9 +52,9 @@ if [ -n "$force_color_prompt" ]; then
fi

<% if @environment == 'production' %>
PS1="\[\e[01;31m\](<%= @environment %>)\[\e[0m\]\[\e[00;37m\] \u@\h \[\e[0m\]\[\e[00;35m\]\\$\[\e[0m\]\[\e[00;37m\] \[\e[0m\]"
PS1="\[\e[01;31m\](<%= @environment %>)\[\e[0m\]\[\e[00;37m\] \u@\h:\[e[0;37m\]\w\[e[m\]]] \[\e[0m\]\[\e[00;35m\]\\$\[\e[0m\]\[\e[00;37m\] \[\e[0m\]"
<% else %>
PS1="\[\e[00;32m\](<%= @environment %>)\[\e[0m\]\[\e[00;37m\] \u@\h \[\e[0m\]\[\e[00;35m\]\\$\[\e[0m\]\[\e[00;37m\] \[\e[0m\]"
PS1="\[\e[00;32m\](<%= @environment %>)\[\e[0m\]\[\e[00;37m\] \u@\h:\[e[0;37m\]\w\[e[m\]]] \[\e[0m\]\[\e[00;35m\]\\$\[\e[0m\]\[\e[00;37m\] \[\e[0m\]"
<% end %>
case "$TERM" in
xterm*|rxvt*)
Expand Down

0 comments on commit e7a69a3

Please sign in to comment.