From: Oleg Broytman Date: Tue, 9 Jul 2024 09:53:34 +0000 (+0300) Subject: shell: Add shortcuts for `cgmem_nice` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d0ac2e2ce443cdcd14d470f7be183c2619fee4aa;p=dotfiles.git shell: Add shortcuts for `cgmem_nice` --- diff --git a/.profile b/.profile index 45b4a56..0061fc1 100644 --- a/.profile +++ b/.profile @@ -130,7 +130,7 @@ if [ -t 0 ] ; then export EDITOR FCEDIT VISUAL HISTCONTROL=ignoreboth - HISTIGNORE="`echo '&: *:~\?*:[bf]g:cd:clear:e:exit:logout:l:ls:ll:llp:[m,]c:ØÓ:w:X:x' | iconv -f koi8-r`" + HISTIGNORE="`echo '&: *:~\?*:[bf]g:cd:clear:c3:c5:e3:e5:e:exit:logout:l:ls:ll:llp:[m,]c:ØÓ:uh:w:X:x' | iconv -f koi8-r`" HISTFILE="$HOME/.sh_history" HISTFILESIZE=2000 HISTSIZE=1000 diff --git a/.shellrc b/.shellrc index 649cefb..f5971ad 100644 --- a/.shellrc +++ b/.shellrc @@ -47,6 +47,12 @@ fi # clear screen and history, logout alias clhlo='clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit' +# cgmem_nice +alias c3='cgmem_nice 300' +alias c5='cgmem_nice 500' +alias e3='exec cgmem_nice 300' +alias e5='exec cgmem_nice 500' + if [ -n "$STY" -a "$WINDOW" != 0 ]; then #unset MAILCHECK everywhere except for the 1st GNU screen window unset MAILCHECK