aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
Diffstat (limited to 'completion')
-rw-r--r--completion/bash-completion.sh2
-rw-r--r--completion/fish-completion.fish6
-rw-r--r--completion/zsh-completion.zsh3
3 files changed, 5 insertions, 6 deletions
diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh
index e9c284c..ae6a744 100644
--- a/completion/bash-completion.sh
+++ b/completion/bash-completion.sh
@@ -27,7 +27,7 @@ _ponysay()
elif [ $prev = "-W" ] || [ $prev = "--wrap" ]; then
cols=$(( `stty size | cut -d ' ' -f 2` - 10 ))
- COMPREPLY=( $cols $(( $cols / 2 )) 100 60 )
+ COMPREPLY=( $cols $(( $cols / 2 )) 100 60 none inherit )
fi
}
diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish
index 044dd78..24e9b05 100644
--- a/completion/fish-completion.fish
+++ b/completion/fish-completion.fish
@@ -1,6 +1,4 @@
-# FISH completions for ponysay
-# https://github.com/erkin/ponysay/
-#
+# fish completion for ponysay -*- shell-script -*-
# Author: Elis Axelsson <etu AT elis DOT nu>
set -g ponies ('/usr/bin/ponysay' --onelist)
@@ -19,7 +17,7 @@ complete --command ponysay --short-option f --long-option pony --argument
complete --command ponysay --short-option F --arguments "$xponies" --description 'extra pony'
complete --command ponysay --short-option q --long-option quote --arguments "$quoters" --no-files --description 'pony'
complete --command ponysay --short-option b --long-option balloon --arguments "$balloons" --no-files --description 'balloon style'
-complete --command ponysay --short-option W --long-option wrap --arguments 'Integer' --description 'specify the column when the message should be wrapped'
+complete --command ponysay --short-option W --long-option wrap --arguments 'Integer' --description 'specify the column when the message should be wrapped' ## TODO arguments `none` and `inherit` should be suggested
complete --command ponysay --arguments 'MESSAGE'
diff --git a/completion/zsh-completion.zsh b/completion/zsh-completion.zsh
index 68487bd..ec00594 100644
--- a/completion/zsh-completion.zsh
+++ b/completion/zsh-completion.zsh
@@ -1,3 +1,4 @@
+# zsh completion for ponysay -*- shell-script -*-
#compdef ponysay ponythink
_opts=(
'(--version -v)'{-v,--version}'[Show version and exit]'
@@ -9,7 +10,7 @@ _opts=(
'(-B --balloonlist)'{-B,--balloonlist}'[list balloon style names]'
'(-b --ballon)'{-b,--balloon}'[Selecy a balloon style]: :_path_files -W '/usr/share/ponysay/balloons' -g "*(\:r)"'
'(-c --compact)'{-c,--compat}'[Compress messages.]'
- '(-W --wrap)'{-W,--wrap}'[The screen column where the message should be wrapped]'
+ '(-W --wrap)'{-W,--wrap}'[The screen column where the message should be wrapped]' # TODO arguments `none` and `inherit` should be suggested
)
_tty_select=(
'(-q --quite)'{-q,--quote}'[Select ponies for MLP:FiM quotes]: :_path_files -W '/usr/share/ponysay/ttyponies' -g "*(\:r)"'