aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
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..802cbf2 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 $homepath | sed -e 's/\.pony//' -e 's/_.*//' | perl -pe 's/([a-z])([A-Z])/\1\\\ \2/' )
end