Created
August 28, 2013 15:05
-
-
Save jackfranklin/6367091 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
I'd like to write a small shell script that takes the output of the `jobs` command, which looks like so: | |
[1] - suspended vim | |
[2] + suspended less foo.txt | |
And have it return a string like: | |
(1:vim 2:less foo.txt) | |
So I can add that to my PROMPT. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a trailing space that I'm working on removing