aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorElis Axelsson <elis.axelsson@gmail.com>2012-07-21 12:34:35 +0200
committerElis Axelsson <elis.axelsson@gmail.com>2012-07-21 12:34:35 +0200
commit86be6c93ff8ad6b0bedc67295c7236c13fbfeafa (patch)
treeefc1828f2a6b5326f41e7f6bd057bed2b09dfa8c /completion
parent57fdde2f5e78abf097a0af2249031989de2ef0b5 (diff)
downloadponysay-86be6c93ff8ad6b0bedc67295c7236c13fbfeafa.tar.gz
ponysay-86be6c93ff8ad6b0bedc67295c7236c13fbfeafa.tar.bz2
ponysay-86be6c93ff8ad6b0bedc67295c7236c13fbfeafa.zip
Fish-completion now supports the new .pony-filename-format
Diffstat (limited to 'completion')
-rw-r--r--completion/fish-completion.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish
index 08b42c4..8299564 100644
--- a/completion/fish-completion.fish
+++ b/completion/fish-completion.fish
@@ -13,11 +13,11 @@ 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 $systempath | sed -e 's/\.pony//' -e 's/_.*//' | perl -pe 's/([a-z])([A-Z])/\1\\\ \2/' )
end