aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-07-24 18:25:16 +0200
committerMattias Andrée <maandree@operamail.com>2012-07-24 18:25:16 +0200
commitdef151d3a93eb7ec956f2977197a39f92440ac9f (patch)
treef40b94daddb22aa36066327417371ea9f297cb35 /completion
parentedbc5b8e1a202cf6800295be9ffe5bd8b848cfb4 (diff)
parentd56ae1c425533f7dcf20c5620118d6e79091e34f (diff)
downloadponysay-def151d3a93eb7ec956f2977197a39f92440ac9f.tar.gz
ponysay-def151d3a93eb7ec956f2977197a39f92440ac9f.tar.bz2
ponysay-def151d3a93eb7ec956f2977197a39f92440ac9f.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'completion')
-rw-r--r--completion/fish-completion.fish15
1 files changed, 7 insertions, 8 deletions
diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish
index 8d3c911..802cbf2 100644
--- a/completion/fish-completion.fish
+++ b/completion/fish-completion.fish
@@ -1,24 +1,23 @@
-
-# Completions for ponysay & ponythink
+# Completions for ponysay
# https://github.com/erkin/ponysay/
#
# Author: Elis Axelsson <etu AT elis DOT nu>
if test $TERM = "linux"
- set -g systempath "/usr/share/ponysay/ttyponies/"
- set -g homepath "~/.local/share/ponysay/ttyponies/"
+ set -g systempath /usr/share/ponysay/ttyponies/
+ set -g homepath ~/.local/share/ponysay/ttyponies/
else
- set -g systempath "/usr/share/ponysay/ponies/"
- set -g homepath "~/.local/share/ponysay/ponies/"
+ set -g systempath /usr/share/ponysay/ponies/
+ set -g homepath ~/.local/share/ponysay/ponies/
end
if test -d $systempath
- set -g systemponies (ls --color=no $systempath | sed 's/\.pony//')
+ set -g systemponies (ls --color=no $systempath | sed -e 's/\.pony//' -e 's/_.*//' | perl -pe 's/([a-z])([A-Z])/\1\\\ \2/' )
end
if test -d $homepath
- set -g homeponies (ls --color=no $homepath | sed 's/\.pony//')
+ set -g homeponies (ls --color=no $homepath | sed -e 's/\.pony//' -e 's/_.*//' | perl -pe 's/([a-z])([A-Z])/\1\\\ \2/' )
end