Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
New script $ZSH/tools/require_tool.sh to ensure version of tool #275
While writing the (future) emacs plugin, I had to ensure version of emacs installed was greater than 23. I remembered this script I had worked with during my studies. I have repacked and it here it is: require_tool.sh
$ ./require_tool.sh emacs 23 ; echo $? 0 $ ./require_tool.sh emacs 50 >/dev/null ; echo $? emacs 50 or better is required: this is emacs 23.1.1 1
As this might be very helpful to other plugins, I believe `$ZSH/tools' directory is appropriate.
By the way, this zsh repo if a very very good idea. Thank you all!