Add alias for realtime process showing

This commit is contained in:
Salt 2024-08-20 09:52:34 -05:00
parent ed1af0ea75
commit 7fbc41cbd1

View File

@ -248,6 +248,12 @@ else
alias ll="ls -Ahl $lsarguments"
fi
# Oneoffs and weird oneliners
if [ "$(uname)" = "Linux" ]; then
# Shows realtime and low-nice processes
alias rtps="LIBPROC_HIDE_KERNEL=1 ps -eo pid,class,rtprio,ni,stat,comm --sort=+pcpu | awk '\$4!=0.0 {print}' | awk 'NR>1'"
fi
# Set up a default PS1 for bash
_ps1bash() {
exitcode="$?"