diff --git a/lib/aliases.zsh b/lib/aliases.zsh index 2b58c4faa857..fd694df1628e 100644 --- a/lib/aliases.zsh +++ b/lib/aliases.zsh @@ -24,3 +24,11 @@ alias sl=ls # often screw this up alias afind='ack-grep -il' +alias reload="source ~/.zshrc" +alias galias='alias | grep' + +# Request confirmation before attempting to remove each file, regardless of the file's permissions, or +# whether or not the standard input device is a terminal. The -i option overrides any previous -f options. +#alias rm="rm -i" + +alias psg='show_processes' diff --git a/lib/functions.zsh b/lib/functions.zsh index 63ab755cf72b..98342237d0de 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -15,3 +15,11 @@ function take() { cd $1 } +function show_processes() { + if (($# == 0)); then + ps -ef + else + echo " UID PID PPID C STIME TTY TIME CMD" + ps -ef | grep $* + fi +}