1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # std_functions: Setup standard ("common") functions
4 function open_command() {
10 cygstart "$@" || return 1
13 nohup xdg-open "$@" &>/dev/null || return 1
22 mkdir -p "$@" && cd "${@:$#}"
25 function zsh_stats() {
27 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' \
28 | grep -v "./" | column -c3 -s " " -t | sort -nr | nl -w 3 -s ": " | head -n20