aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
Diffstat (limited to 'completion')
-rw-r--r--completion/bash-completion.sh4
-rw-r--r--completion/fish-completion.fish (renamed from completion/fish_ponysay.fish)4
-rw-r--r--completion/fish_ponythink.fish24
3 files changed, 4 insertions, 28 deletions
diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh
index e119834..53c53ef 100644
--- a/completion/bash-completion.sh
+++ b/completion/bash-completion.sh
@@ -17,10 +17,10 @@ _ponysay()
COMPREPLY=()
sysponies=/usr/share/ponysay/ponies/
- usrponies=~/.ponies/
+ usrponies=~/.local/share/ponysay/ponies/
if [[ $TERM = "linux" ]]; then
sysponies=/usr/share/ponysay/ttyponies/
- usrponies=~/.ttyponies/
+ usrponies=~/.local/share/ponysay/ttyponies/
fi
if [[ -d $sysponies ]]; then
diff --git a/completion/fish_ponysay.fish b/completion/fish-completion.fish
index f0c73a2..ea98382 100644
--- a/completion/fish_ponysay.fish
+++ b/completion/fish-completion.fish
@@ -6,11 +6,11 @@
if test -d /usr/share/ponysay/ponies/
- set -g systemponies (ls /usr/share/ponysay/ponies/ | sed 's/\.pony/\t Pony from \/usr\/share\/ponysay\/ponies\//')
+ set -g systemponies (ls --color=no /usr/share/ponysay/ponies/ | sed 's/\.pony/\t Pony from \/usr\/share\/ponysay\/ponies\//')
end
if test -d ~/.local/share/ponysay/ponies/
- set -g homeponies (ls ~/.local/share/ponysay/ponies/ | sed 's/\.pony/\t Pony from ~\/.local\/share\/ponysay\/ponies\//')
+ set -g homeponies (ls --color=no ~/.local/share/ponysay/ponies/ | sed 's/\.pony/\t Pony from ~\/.local\/share\/ponysay\/ponies\//')
end
complete -c ponysay -s h --description "Help of ponysay"
diff --git a/completion/fish_ponythink.fish b/completion/fish_ponythink.fish
deleted file mode 100644
index 928b72e..0000000
--- a/completion/fish_ponythink.fish
+++ /dev/null
@@ -1,24 +0,0 @@
-
-# Completions for ponysay & ponythink
-# https://github.com/erkin/ponysay/
-#
-# Author: Elis Axelsson <etu AT elis DOT nu>
-
-
-if test -d /usr/share/ponysay/ponies/
- set -g systemponies (ls /usr/share/ponysay/ponies/ | sed 's/\.pony/\t Pony from \/usr\/share\/ponysay\/ponies\//')
-end
-
-if test -d ~/.local/share/ponysay/ponies/
- set -g homeponies (ls ~/.local/share/ponysay/ponies/ | sed 's/\.pony/\t Pony from ~\/.local\/share\/ponysay\/ponies\//')
-end
-
-complete -c ponythink -s h --description "Help of ponythink"
-complete -c ponythink -s v --description "Version of ponythink"
-complete -c ponythink -s l --description "List pony files"
-complete -c ponythink -s f -a "$systemponies $homeponies" --description "Select a pony, either a filename or pony name"
-complete -c ponythink -s W -a "Integer" --description "The screen column where the message should be wrapped"
-
-set -e systemponies
-set -e homeponies
-