diff options
Diffstat (limited to 'completion')
-rw-r--r-- | completion/fish-completion.fish | 15 |
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 |