From f8a9088bed7fc73d501228dda5c7afb0aaf2d76a Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Fri, 20 Jul 2012 18:29:00 +0200 Subject: Made generation of ponythink completions simpler --- completion/fish-completion.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completion') diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish index 8d3c911..0023c58 100644 --- a/completion/fish-completion.fish +++ b/completion/fish-completion.fish @@ -1,5 +1,5 @@ -# Completions for ponysay & ponythink +# Completions for ponysay # https://github.com/erkin/ponysay/ # # Author: Elis Axelsson -- cgit From 9c859fe68385dfa4dd9b426cd3b790ca31fcfcc3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Jul 2012 18:47:54 +0200 Subject: Revert "Merge pull request #43 from etu/master" This commit broke bash-completion for ponythink. This reverts commit 9dd1fbe1754ee592059e3c7f33f7ffd66fbfaad5, reversing changes made to 7e5018d58a4cb2f24087e6c3ac8d7b43b3c5066a. --- completion/fish-completion.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completion') diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish index 0023c58..8d3c911 100644 --- a/completion/fish-completion.fish +++ b/completion/fish-completion.fish @@ -1,5 +1,5 @@ -# Completions for ponysay +# Completions for ponysay & ponythink # https://github.com/erkin/ponysay/ # # Author: Elis Axelsson -- cgit From 39968bb8318857b65d0c37e334526189e0a0332e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Jul 2012 19:51:30 +0300 Subject: Update completion/fish-completion.fish --- completion/fish-completion.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'completion') diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish index 8d3c911..9a0cf23 100644 --- a/completion/fish-completion.fish +++ b/completion/fish-completion.fish @@ -1,5 +1,4 @@ - -# Completions for ponysay & ponythink +# Completions for ponysay # https://github.com/erkin/ponysay/ # # Author: Elis Axelsson -- cgit From 6bff7576ebe259f9cb88c75e6131353c1e55a70f Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Fri, 20 Jul 2012 19:13:15 +0200 Subject: Fix fish-completion of homeponies --- completion/fish-completion.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'completion') diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish index 9a0cf23..08b42c4 100644 --- a/completion/fish-completion.fish +++ b/completion/fish-completion.fish @@ -4,11 +4,11 @@ # Author: Elis Axelsson 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 -- cgit From 86be6c93ff8ad6b0bedc67295c7236c13fbfeafa Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sat, 21 Jul 2012 12:34:35 +0200 Subject: Fish-completion now supports the new .pony-filename-format --- completion/fish-completion.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'completion') 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 -- cgit From f4bdfd9e7d6eb670a5caa0dd4f3b4d47fd662fd8 Mon Sep 17 00:00:00 2001 From: Elis Date: Sat, 21 Jul 2012 18:39:11 +0300 Subject: Fixed stupid copy-paste fail --- completion/fish-completion.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completion') diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish index 8299564..802cbf2 100644 --- a/completion/fish-completion.fish +++ b/completion/fish-completion.fish @@ -17,7 +17,7 @@ if test -d $systempath end if test -d $homepath - set -g homeponies (ls --color=no $systempath | sed -e 's/\.pony//' -e 's/_.*//' | perl -pe 's/([a-z])([A-Z])/\1\\\ \2/' ) + set -g homeponies (ls --color=no $homepath | sed -e 's/\.pony//' -e 's/_.*//' | perl -pe 's/([a-z])([A-Z])/\1\\\ \2/' ) end -- cgit