Skip to content

Commit

Permalink
Use eval in example
Browse files Browse the repository at this point in the history
Otherwise, aliases won't be expanded. Pointed out by Jenz Guenther in
issue #253.
  • Loading branch information
mptre committed Oct 2, 2017
1 parent 9822a5a commit 031817f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ follow the instructions in [DEVELOPING.md][current].
```sh
git ls-files | pick | xargs less # Select a file in the current git repository to view in less
cd "$(find . -type d | pick)" # Select a directory to cd into
$(fc -ln 1 | pick) # Select a command from the history to execute
eval "$(fc -ln 1 | pick)" # Select a command from the history to execute
```

Pick can also easily be used from within Vim both using `system()` and `!`. For
Expand Down
2 changes: 1 addition & 1 deletion pick.1
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Select a file in the current directory to open using
.Pp
Select a command from the history to execute:
.Pp
.Dl $ $(fc -ln 1 | pick)
.Dl $ eval \&"$(fc -ln 1 | pick)\&"
.Sh DIAGNOSTICS
.Ex -std
.Sh HISTORY
Expand Down

0 comments on commit 031817f

Please sign in to comment.