This plugin implements a "cheat" function and uses http://cheat.sh
to download cheat sheet information. It supports curl(1) as well as
wget(1) and uses the "monokai" theme.
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# cheat: Setup http://cheat.sh
+
+function cheat() {
+ url="http://cheat.sh/$@?style=monokai"
+
+ if (( $+commands[curl] )); then
+ curl "$url"
+ elif (( $+commands[wget] )); then
+ wget -qO - "$url"
+ else
+ echo "Neither curl(1) nor wget(1) found!" >&2
+ return 1
+ fi
+}