From 6266c05c66da25b871836a9d7a664da8399a17a4 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sat, 16 Jul 2016 17:19:43 +0100 Subject: [PATCH] Fix psgrep function declaration. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index d7fa43c..03250bc 100755 --- a/.bashrc +++ b/.bashrc @@ -125,7 +125,7 @@ ll() { ls -l ${@}; } && export -f ll datafart() { curl --data-binary @- datafart.com; } && export -f datafart space() { du -ahx --max-depth=1 | sort -h; } && export -f space [[ -x $(which htop 2>/dev/null) ]] && top() { sudo htop; } && export -f top -[[ -x $(which psgrep 2>/dev/null) ]] || ( psgrep() { ps -ef | grep ${@}; } && export -f psgrep ) +[[ -x $(which psgrep 2>/dev/null) ]] || psgrep() { ps -ef | grep ${@}; } && export -f psgrep [[ -x $(which gdu 2>/dev/null) ]] && du() { gdu ${@}; } && export -f du [[ -x $(which gsort 2>/dev/null) ]] && sort() { gsort ${@}; } && export -f sort #--------------------------------------------------------------------------------