mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Adding psgrep plugin
This commit is contained in:
parent
1120f97305
commit
43639f0d13
1 changed files with 7 additions and 0 deletions
7
plugins/psgrep/psgrep.plugin.zsh
Normal file
7
plugins/psgrep/psgrep.plugin.zsh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Grep out of ps. Cut to 80 chars
|
||||
function psgrep
|
||||
{
|
||||
/bin/ps alxw |head -1
|
||||
/bin/ps alxw |grep $1 |grep -v "grep $1" |cut -c 1-$COLUMNS
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue