From 1c7c1ed2f80b09e12addaf46753bc1679c7251d3 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Tue, 28 Jan 2020 18:33:53 +0000 Subject: kiss: Read alternatives over stdin FossilOrigin-Name: 2ad7d3dcd8f831545b409fdf2016318ec3eba843c4d59fcb19df6d0d3f747f30 --- kiss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss b/kiss index f56c1d1..9bf5cc0 100755 --- a/kiss +++ b/kiss @@ -1239,7 +1239,12 @@ args() { # keystrokes once you memorize the commands. case $action in a|alternatives) - if [ "$1" ]; then + if [ "$1" = - ]; then + while read -r pkg path; do + pkg_swap "$pkg" "$path" + done + + elif [ "$1" ]; then pkg_swap "$@" else -- cgit v1.2.3