Skip to content

Commit

Permalink
Replace the pmine function with an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
RIT80 authored and RIT80 committed Apr 11, 2012
1 parent 6251684 commit 126abff
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions modules/utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# Serves a directory via HTTP.
alias http-serve='python -m SimpleHTTPServer'

# Displays user owned processes status.
alias pmine='ps -U "$USER" -o pid,%cpu,%mem,command'

# Makes a directory and changes to it.
function mkdcd {
[[ -n "$1" ]] && mkdir -p "$1" && cd "$1"
Expand Down Expand Up @@ -39,12 +42,6 @@ function slit {
awk "{ print $(for n; do print -n "\$$n,"; done | sed 's/,$//') }"
}

# Displays user owned process status.
function pmine {
ps "$@" -U "$USER" -o pid,%cpu,%mem,command
}
compdef _ps pmine 2> /dev/null

# Finds files and executes a command on them.
function find-exec {
find . -type f -iname "*${1:-}*" -exec "${2:-file}" '{}' \;
Expand Down

0 comments on commit 126abff

Please sign in to comment.