From 2c244281031e244d9c999b4f2bdde6e4dc843a05 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 15 Dec 2020 12:08:10 -0500 Subject: [PATCH] update countdown_timer, gdbdashboard, and vimrc --- bash_scripts/countdown_timer.sh | 5 +++-- gdb/.gdbinit.d/gdbdashbard.conf | 2 +- vim/.vimrc | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bash_scripts/countdown_timer.sh b/bash_scripts/countdown_timer.sh index 6f2e777..d6690d5 100755 --- a/bash_scripts/countdown_timer.sh +++ b/bash_scripts/countdown_timer.sh @@ -4,10 +4,11 @@ PLAYSOUND=true PLAYER=mpv FILE="/usr/share/sounds/freedesktop/stereo/message.oga" -echo "Counting down from ${1}" +seconds=${1:-180} +echo "Counting down from $seconds" Msg=${2} -let "i = ${1}" +let "i = $seconds" while [ $i -gt 0 ]; do echo $i let i-- diff --git a/gdb/.gdbinit.d/gdbdashbard.conf b/gdb/.gdbinit.d/gdbdashbard.conf index 0cb2ac8..5a94624 100644 --- a/gdb/.gdbinit.d/gdbdashbard.conf +++ b/gdb/.gdbinit.d/gdbdashbard.conf @@ -1,6 +1,6 @@ # auto generated by GDB dashboard -dashboard -layout assembly !registers stack memory source expressions !history !threads +dashboard -layout !assembly !registers stack memory source expressions !history !threads dashboard -style syntax_highlighting 'rrt' dashboard -style style_low '0;37' dashboard source -style context 15 diff --git a/vim/.vimrc b/vim/.vimrc index 299bb9d..75bfd0c 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -41,6 +41,7 @@ set hlsearch set wrap set mouse+=a set noequalalways " don't auto resize windows when closing (eg: qf window) +set colorcolumn=80,100 " don't clutter directories with backup files set nobackup @@ -104,7 +105,7 @@ map :bprev " jump to word under cursor in a preview window noremap :ptjump " search for word under cursor in current directory -noremap ::AsyncRun grep -RIn --exclude=tags +noremap ::AsyncRun grep -RIn --exclude=tags --exclude-dir=build " close and delete current buffer noremap :bp\|bd # noremap :call RunMake()