Make compatible with older versions of ZSH

master
Thomas A. Christensen II 3 years ago committed by GitHub
parent 1a4f34cdff
commit bb0634e8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save