I'm trying to make a compatible "say" command on Linux. So far this works:
alias say='echo "$1" | espeak -s 120 2>/dev/null'
I'm adding this to /etc/bash.bashrc. Problem is, this
say is called from my_ruby_file.rb. I understood what's the problem, but I cannot change the file. The Ruby file uses sh, and not bash. My question is, how can I use this alias so
say would be available in all shells?