Fix psgrep function.
This commit is contained in:
parent
bdd45d1bc5
commit
7ce205cfa7
3 changed files with 198 additions and 208 deletions
|
|
@ -34,7 +34,7 @@ hash grep >/dev/null 2>&1 && { alias egrep='grep -E'; alias fgrep='grep -F'; }
|
|||
hash ps grep >/dev/null 2>&1 && psgrep() {
|
||||
if [[ -n "$1" ]]; then
|
||||
# shellcheck disable=SC2009
|
||||
ps | command grep -E -- "(.*RSS.*|$1)" | command grep -F -v '(.*RSS.*|'
|
||||
ps -auwwx | command grep -E -- "(.*RSS.*|$1)" | command grep -F -v '(.*RSS.*|'
|
||||
else
|
||||
printf "%s: %s\\n" "Usage" "${FUNCNAME[0]} <something>" >&2
|
||||
return 1
|
||||
|
|
@ -43,11 +43,6 @@ hash ps grep >/dev/null 2>&1 && psgrep() {
|
|||
hash ls >/dev/null 2>&1 && alias ls='ls -Fv --color=always'
|
||||
hash nc >/dev/null 2>&1 && alias pastebin='nc termbin.com 9999'
|
||||
|
||||
[[ -z "$SSH_TTY" ]] && {
|
||||
echo -ne "\e[2q"
|
||||
echo -e "\e]12;#00FF00"
|
||||
}
|
||||
|
||||
for FILE in "$HOME"/.bashrc.d/*; do
|
||||
[[ -x "$FILE" ]] && source "$FILE"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue