Skip to content

Commit

Permalink
feat(c): ensure use command on path 👣
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Feb 19, 2024
1 parent 96bb69c commit af3bcb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# Run command and put output to system clipper.
#
# @Usage
# $ c echo 'hello world!'
# $ echo 'hello world!' | c
# $ c ls -l
# $ ls -l | c
# $ c -q < ~/.ssh/id_rsa.pub
#
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-c
# @author Jerry Lee (oldratlee at gmail dot com)
Expand Down Expand Up @@ -41,7 +42,6 @@ Run command and put output to system clipper.
If no command is specified, read from stdin(pipe).
Example:
$PROG echo "hello world!"
$PROG grep -i 'hello world' menu.h main.c
set | $PROG
$PROG -q < ~/.ssh/id_rsa.pub
Expand Down Expand Up @@ -141,5 +141,5 @@ teeAndCopy() {
if ((${#target_command[@]} == 0)); then
teeAndCopy
else
"${target_command[@]}" | teeAndCopy
command "${target_command[@]}" | teeAndCopy
fi
1 change: 0 additions & 1 deletion docs/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ Run command and put output to system clipper.
If no command is specified, read from stdin(pipe).

Example:
c echo "hello world!"
c grep -i 'hello world' menu.h main.c
set | c
c -q < ~/.ssh/id_rsa.pub
Expand Down

0 comments on commit af3bcb5

Please sign in to comment.