|
|
Use Growl to monitor long-running shell commands
Try:
export PREEXEC_CMD="$(echo $1 | awk '{print $1}')"However, note that unless I'm mistaken, $BASH_COMMAND would include the entire command and all its arguments were it working. So, not sure if just getting the first word is entirely correct. I concur that this seems more like an issue with growlcode than with using $1 or $BASH_COMMAND. Perhaps instead of just taking the first word, a better workaroud would be to just replace the dash with another character like tilde: export PREEXEC_CMD="$(echo $1 | sed 's/-/~/g')"Now, at a quick glance it still looks right. -dbingham
Use Growl to monitor long-running shell commands
that awk bit works. Thanks. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|