Created
March 30, 2012 15:18
-
-
Save anaynayak/2252226 to your computer and use it in GitHub Desktop.
Set terminal prompt based on chef client node name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\[\e[36;1m\]\u@\[\e[32;1m\]`cat /etc/chef/client.rb | grep node_name |sed 's/node_name "\(.*\)\"/\1/'` \w\a\e[32;1m\]> \[\e[0m\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment