This plugin will implement some "standard" functions. Right now, it only
implements take() and zsh_stats() functions, known from OhMyZsh.
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# std_functions: Setup standard ("common") functions
+
+function take() {
+ mkdir -p "$@" && cd "${@:$#}"
+}
+
+function zsh_stats() {
+ fc -l 1 \
+ | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' \
+ | grep -v "./" | column -c3 -s " " -t | sort -nr | nl -w 3 -s ": " | head -n20
+}