mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
25 lines
598 B
Bash
25 lines
598 B
Bash
function zsh_stats() {
|
|
history | 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 | head -n20
|
|
}
|
|
|
|
function uninstall_oh_my_zsh() {
|
|
/usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
|
|
}
|
|
|
|
function upgrade_oh_my_zsh() {
|
|
/usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
|
|
}
|
|
|
|
function take() {
|
|
mkdir -p $1
|
|
cd $1
|
|
}
|
|
|
|
function show_processes() {
|
|
if (($# == 0)); then
|
|
ps -ef
|
|
else
|
|
echo " UID PID PPID C STIME TTY TIME CMD"
|
|
ps -ef | grep $*
|
|
fi
|
|
}
|