aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorElis <elis.axelsson@gmail.com>2012-07-19 11:41:45 -0700
committerElis <elis.axelsson@gmail.com>2012-07-19 11:41:45 -0700
commit64a2dfa2d4d7279a9aca0eb65dabeb3fad6ee3a0 (patch)
tree900bdac153e23e5c6272a4f762447954397e42ce /completion
parentbae75d95b6ce3af5ac16284a6079ba0feb65cf0b (diff)
parent839f0b20e8e4982da6a152bd6d702b699d352324 (diff)
downloadponysay-64a2dfa2d4d7279a9aca0eb65dabeb3fad6ee3a0.tar.gz
ponysay-64a2dfa2d4d7279a9aca0eb65dabeb3fad6ee3a0.tar.bz2
ponysay-64a2dfa2d4d7279a9aca0eb65dabeb3fad6ee3a0.zip
Merge pull request #2 from erkin/master
get up to date
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
-