diff options
author | Determinant <tederminant@gmail.com> | 2020-05-22 13:45:57 -0400 |
---|---|---|
committer | Determinant <tederminant@gmail.com> | 2020-05-22 13:45:57 -0400 |
commit | 9b2098bcbc93633bbdbac7402a33d503e1adb77b (patch) | |
tree | 6f753422135ac2ee11eb04a6e1b43f9b425bfc24 /tmux-colortag-prompt.sh | |
parent | ce6e5757b048e6186b6554c323ca5ff9e8f1ab67 (diff) |
improve the error message
Diffstat (limited to 'tmux-colortag-prompt.sh')
-rwxr-xr-x | tmux-colortag-prompt.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tmux-colortag-prompt.sh b/tmux-colortag-prompt.sh index 74cfdf8..8e2aeaf 100755 --- a/tmux-colortag-prompt.sh +++ b/tmux-colortag-prompt.sh @@ -6,10 +6,10 @@ case "$1" in tmux command-prompt -p '[ColorTag]:' "run-shell 'idx=#I name=#W $CURRENT_DIR/tmux-colortag-prompt.sh %1'" ;; color-idx) - "$CURRENT_DIR/name2color.py" "$idx" "$name" --color-idx "$2" || echo "invalid argument" + "$CURRENT_DIR/name2color.py" "$idx" "$name" --color-idx "$2" || echo "ColorTag: invalid argument" ;; color-name) - "$CURRENT_DIR/name2color.py" "$idx" "$name" --color-name "$2" || echo "invalid argument" + "$CURRENT_DIR/name2color.py" "$idx" "$name" --color-name "$2" || echo "ColorTag: invalid argument" ;; clear-idx) "$CURRENT_DIR/name2color.py" "$idx" "$name" --clear-idx @@ -20,5 +20,5 @@ case "$1" in clear-all) "$CURRENT_DIR/name2color.py" "$idx" "$name" --clear ;; - *) echo "invalid ColorTag command"; exit 0;; + *) echo "ColorTag: invalid command"; exit 0;; esac |