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

Commit

Permalink
Properly add pwd to PS1
Browse files Browse the repository at this point in the history
Sam Kottler committed Jul 6, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 672972f commit fb499c8
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -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.20)
sudo (>= 0.0.0)
user (>= 0.0.0)
rubygems-redis (0.0.3)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-people/metadata.rb
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
maintainer 'RubyGems.org Ops Team'
license 'MIT'
description 'RubyGems user recipes'
version '0.0.18'
version '0.0.20'

depends 'user'
depends 'sudo'
4 changes: 2 additions & 2 deletions cookbooks/rubygems-people/templates/default/bashrc.erb
Original file line number Diff line number Diff line change
@@ -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[00;37m\]\w\[\e[0m\] \[\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[00;37m\]\w\[\e[0m\] \[\e[0m\]\[\e[00;35m\]\\$\[\e[0m\]\[\e[00;37m\] \[\e[0m\]"
<% end %>
case "$TERM" in
xterm*|rxvt*)

0 comments on commit fb499c8

Please sign in to comment.