config: stretchly and killm tweaks

This commit is contained in:
xeruf 2023-08-12 00:57:40 +02:00
parent 912116b9be
commit a2a2943a1d
3 changed files with 8 additions and 8 deletions

View File

@ -10,15 +10,15 @@
"microbreak": true, "microbreak": true,
"break": true, "break": true,
"microbreakStrictMode": true, "microbreakStrictMode": true,
"breakStrictMode": false, "breakStrictMode": true,
"morningHour": 6, "morningHour": 6,
"microbreakPostpone": false, "microbreakPostpone": true,
"breakPostpone": true, "breakPostpone": true,
"microbreakPostponeTime": 120000, "microbreakPostponeTime": 120000,
"breakPostponeTime": 300000, "breakPostponeTime": 300000,
"microbreakPostponesLimit": 1, "microbreakPostponesLimit": 1,
"microbreakPostponableDurationPercent": 20, "microbreakPostponableDurationPercent": 10,
"breakPostponesLimit": 3, "breakPostponesLimit": 10,
"breakPostponableDurationPercent": 20, "breakPostponableDurationPercent": 20,
"mainColor": "#633738", "mainColor": "#633738",
"miniBreakColor": "#478484", "miniBreakColor": "#478484",
@ -471,4 +471,4 @@
"version": "1.14.1" "version": "1.14.1"
} }
} }
} }

View File

@ -13,4 +13,4 @@ set multiple-cursors
set ideajoin set ideajoin
" use IDEA jump history https://youtrack.jetbrains.com/issue/VIM-44 " use IDEA jump history https://youtrack.jetbrains.com/issue/VIM-44
nnoremap <C-o> :action Back<CR> " nnoremap <C-o> :action Back<CR>

View File

@ -483,9 +483,9 @@ updateKarma() { rpl "karma-runner.github.io/[^/]\+/" "karma-runner.github.io/$1/
# Kill all shell background processes # Kill all shell background processes
alias killbg='kill -9 ${${(v)jobstates##*:*:}%=*}' alias killbg='kill -9 ${${(v)jobstates##*:*:}%=*}'
# Kill all processes that match # Kill all processes that match given term
killm() { killm() {
ps ax | grep "$1" | grep -v grep | sed 's/\([^ ]\) .*/\1/' | ps ax | grep "\b$1 " | grep '?' | grep -v grep | sed 's/\([^ ]\) .*/\1/' |
xargs --no-run-if-empty kill --verbose "${@:2}" xargs --no-run-if-empty kill --verbose "${@:2}"
} }