Skip to content

Commit 682843e

Browse files
gen zsh dist file independently, not just copy from bash
1 parent ed08367 commit 682843e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

generator.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ fi
2525

2626
echo.Green ColorEcho generator start!
2727

28-
for shell in sh bash fish ksh
28+
for shell in sh bash fish ksh zsh
2929
do
3030
echo.BoldYellow Generating ColorEcho for $shell shell ...
3131
#shell specify configs and tricks
3232
case $shell in
33-
"bash")
33+
"bash" | "zsh")
3434
fn='function '
3535
dot='.'
3636
echo='echo'
@@ -131,8 +131,4 @@ LOLCAT
131131

132132
done
133133

134-
#zsh can use bash's script
135-
echo.BoldYellow Generating ColorEcho for zsh shell ...
136-
cp $distFolder/$distPrefix.bash $distFolder/$distPrefix.zsh
137-
138134
echo.Green ColorEcho generator end!

0 commit comments

Comments
 (0)