-
Notifications
You must be signed in to change notification settings - Fork 42
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
Update example in manual #253
Comments
How about: apropos . | sed 's/ -/\t-/' | IFS=$'\t' pick -d | awk '{print $2 " " $1}' | tr -d '()' | xargs man for the above example? (The |
Cool. But, I was hoping for something less complex but equally useful. |
eval "$(fc -ln 1 | pick)" # Select a line in the command history to execute ... works with cd "$(find . -type d | pick)" ... to deal with spaces in directory names ... |
Very nice! This should be sufficient: $ $(fc -ln | pick)
Correct, care to draft a PR? |
Replace example with a more portable but equally useful one. Proposed by Jenz Guenther in PR #253.
Does commit e50564b look good? |
|
Replace example with a more portable but equally useful one. Proposed by Jenz Guenther in PR #253.
Didn't know, fixed! |
... but |
Otherwise, aliases won't be expanded. Pointed out by Jenz Guenther in issue #253.
Thanks, fixed in commmit 031817f. |
My bad: quoting the command after |
Pointed out by Jenz Guenther in issue #253.
Right, thanks. Fixed in commit ae84349. |
I've always been bothered by the fact that I can't run one of the
examples in the manual without installing the missing utilities
fltr
and
tac
:Instead, I think we can come up with something as useful but portable.
Thoughts and ideas would be appreciated.
The text was updated successfully, but these errors were encountered: