1
0
Fork 0
mirror of https://github.com/MillironX/cowsay-cows.git synced 2024-11-24 15:29:55 +00:00

Make compatible with older versions of ZSH

This commit is contained in:
Thomas A. Christensen II 2021-09-01 12:24:04 -05:00 committed by GitHub
parent 1a4f34cdff
commit bb0634e8fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
# Only add stuff if cowsay is installed # Only add stuff if cowsay is installed
if [[ $(command -v cowsay) ]]; then if [ $(command -v cowsay) ]; then
# Add the originally present cows to COWPATH # Add the originally present cows to COWPATH
for COW in $(find $(whereis cowsay | awk '{print $3}') -name "*.cow" | xargs dirname | uniq); do for COW in $(find $(whereis cowsay | awk '{print $3}') -name "*.cow" | xargs dirname | uniq); do
export COWPATH=$COW:$COWPATH export COWPATH=$COW:$COWPATH