mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-29 23:48:00 +01:00
Merge pull request #51 from etu/master
Fixed support for multiple -f that I broke, and made fish-completions support the new .pony-name-format
This commit is contained in:
commit
232fd2461a
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
2
ponysay
2
ponysay
|
@ -270,7 +270,7 @@ while getopts $opts OPT; do
|
|||
case ${OPT} in
|
||||
v) version; exit ;;
|
||||
h) usage; exit ;;
|
||||
f) ponies=($(echo $OPTARG | sed -e 's/ //g' -e 's/,/\n/')) ;;
|
||||
f) ponies+=($(echo $OPTARG | sed -e 's/ //g')) ;;
|
||||
l) list; exit ;;
|
||||
L) linklist; exit ;;
|
||||
W) wrap="$OPTARG" ;;
|
||||
|
|
Loading…
Reference in a new issue