Skip to content

Commit

Permalink
Read from stdin if argv is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebucaran committed Jan 12, 2021
1 parent 117a6ea commit 9b6ec51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/spark.fish
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function spark --description Sparklines
echo "Examples:"
echo " spark 1 1 2 5 14 42"
echo " seq 64 | sort --random-sort | spark"
else if isatty
else if set --query argv[1]
printf "%s\n" $argv | spark --min="$_flag_min" --max="$_flag_max"
else
command awk -v min="$_flag_min" -v max="$_flag_max" '
Expand Down

0 comments on commit 9b6ec51

Please sign in to comment.