From 126abffe37618fc753af2fc2d338f60a5b415710 Mon Sep 17 00:00:00 2001 From: RIT80 <55622 08+RIT80@users.noreply.github.com> Date: Wed, 11 Apr 2012 19:13:07 +0100 Subject: [PATCH] Replace the pmine function with an alias --- modules/utility/init.zsh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 52126e6bf5e..a3da077ac3c 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -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" @@ -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}" '{}' \;