mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-05-09 17:18:36 +00:00
Allow specifying further arguments in actions
This commit is contained in:
parent
219f8ebe4e
commit
52a00e9d29
1 changed files with 5 additions and 3 deletions
|
@ -188,9 +188,11 @@ while read -r cmd <&5; do
|
|||
output="$(echo $cmd | cut -d " " -f2-)"
|
||||
|
||||
if [[ "$prefix" == "cmd" ]]; then
|
||||
cmd="${CMDS[$output]}"
|
||||
>&2 echo "CMD: $output ($cmd)"
|
||||
eval $cmd
|
||||
key="$(echo $output | cut -d " " -f1)"
|
||||
args="$(echo $output | cut -d " " -f2-)"
|
||||
run_str="${CMDS[$key]} $args"
|
||||
>&2 echo "CMD: $run_str ($key)"
|
||||
eval $run_str
|
||||
continue
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue