Skip to content

Commit

Permalink
New general aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
tinogomes committed Jun 2, 2013
1 parent c1b9a22 commit 29ff1ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
8 changes: 8 additions & 0 deletions lib/functions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 29ff1ac

Please sign in to comment.