From b39801c49aaef5aac95a2d8088833cedcbe14c68 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 22 Nov 2014 06:26:16 +0300 Subject: [PATCH] Justify commands to the longest one (pidOf) --- .shellrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.shellrc b/.shellrc index e348ff2..2ef0bdb 100644 --- a/.shellrc +++ b/.shellrc @@ -75,8 +75,8 @@ esac #PWd() { pwd | sed "s/.*\/\(.*\)\/\(.*\)/...\/\2/"; } -psg() { ps auxw | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } -pswg() { ps auxwww | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } +psg() { ps auxw | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } +pswg() { ps auxwww | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } # Like pgrep -f pidOf() { ps auxwww | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\|pidOf\|KillAll\)' | awk '{print $2}'; } -- 2.39.5