Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for !$ (args history expansion ) #95

Merged
merged 1 commit into from May 11, 2014

Conversation

cvanfleteren
Copy link
Contributor

Support for bash style arguments history expansion.

For example:

When you just entered:

ls some_dir

And then enter

rm !$ 

the command gets expanded to

rm some_dir

See the ref at http://www.gnu.org/software/bash/manual/bashref.html
This pull request only has support for the short form, if wanted, I can look at supporting the long form.

This was inspired by a jira issue at Karaf ( https://issues.apache.org/jira/browse/KARAF-2070 )

@trptcolin trptcolin merged commit 4b64715 into jline:master May 11, 2014
@trptcolin
Copy link
Member

Thanks for this! I made one small tweak, changing the exception message to use !$ (the relevant trigger) rather than !#. Let me know if that wasn't just a typo and I just missed the reason for making it !#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants