1
I am using vcprompt to provide me with the git branch and dirtiness status. It returns it as a string.
How can I catch this string in my tcsh prompt setting? I guess I need to put the call to vcprompt somehow in the prompt definition, but I can't find the syntax for that.
Edit: Solution is:
alias precmd "echo -n `vcprompt`"
Almost. Had to put quotes around everything after precmd. (And there seems to be no frickin' way to write that command line in a comment here without some markup happening... :( – K.-Michael Aye – 2012-10-26T22:41:40.460