From d0ac2e2ce443cdcd14d470f7be183c2619fee4aa Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 9 Jul 2024 12:53:34 +0300 Subject: [PATCH] shell: Add shortcuts for `cgmem_nice` --- .profile | 2 +- .shellrc | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5