commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This only makes sense if you are using command line editing.
Create the function in your current zsh session, then type
go 'UP' in your history and notice the current (editable) definition of PATH shows up as the previous
Same as doing:
but takes fewer characters and you don't have to remember the escaping.
There are 2 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.