4 ms·
Cool! I've practically created my own framework in Bash to hack my prompt but I never thought about sharing it. My prompt shows the git branch, svn revision, a
by zain 17y ago
Cool! I've practically created my own framework in Bash to hack my prompt but I never thought about sharing it.
My prompt shows the git branch, svn revision, and active virtualenv ("workon" and "deactivate" are virtualenv commands in the screenshot below). Also, mine has COLORS! (Colors within the dynamic function are much harder than they sound)
Here's a quick screenshot: http://img.skitch.com/20090817-gtp7bgkmdn14j84ryhepa2edke.png http://img.skitch.com/20090817-gtp7bgkmdn14j84ryhepa2edke.pn...
You can extend it pretty easily to show whatever you want by doing little more than adding another function. Throw this into ~/.profile if you want to try it: http://pastebin.com/f79a9af51 http://pastebin.com/f79a9af51