From 5f1bcbf08079491f0e63d05b47c348a22844bc10 Mon Sep 17 00:00:00 2001 From: dummy Date: Mon, 12 Oct 2020 10:17:19 -0400 Subject: [PATCH] update tmux_start, vimrc, gdbinit, and conky --- bash_scripts/tmux_start.sh | 4 ++-- dot/.bashrc | 2 +- dot/conky.conf | 8 ++++---- gdb/.gdbinit | 8 ++++---- vim/.vimrc | 6 ++++-- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/bash_scripts/tmux_start.sh b/bash_scripts/tmux_start.sh index 609a9a5..aacb84d 100755 --- a/bash_scripts/tmux_start.sh +++ b/bash_scripts/tmux_start.sh @@ -13,8 +13,8 @@ if [ -n "$TMUX_PANE" ]; then else SESSION='default' tmux -2 -CC new -s $SESSION - tmux -CC rename-window -t $SESSION powermate - tmux send-keys -t $SESSION 'powermate_pactl.py' C-m + #tmux -CC rename-window -t $SESSION powermate + #tmux send-keys -t $SESSION 'powermate_pactl.py' C-m tmux -CC new-window -n dev -t $SESSION tmux -CC new-window -t $SESSION tmux attach -t $SESSION diff --git a/dot/.bashrc b/dot/.bashrc index 0c30561..b2ff194 100644 --- a/dot/.bashrc +++ b/dot/.bashrc @@ -36,7 +36,7 @@ PS1="[$user_name\u$reset@$host\h$reset:$directory\w$reset]$" # Some shortcuts for different directory listings alias ls='ls -hF --color=tty --group-directories-first' # classify files in colour alias ll='ls -l' # long list -alias grep='grep --color=auto' +alias grep='grep --color=always' alias tmux='tmux -2' alias gdb='gdb -q' alias tree='tree -C --dirsfirst' diff --git a/dot/conky.conf b/dot/conky.conf index 9f56ad5..ba47877 100644 --- a/dot/conky.conf +++ b/dot/conky.conf @@ -101,12 +101,12 @@ GMEM usage: ${nvidia memused} MB / ${nvidia memmax} MB ${voffset -10} NETWORK ${hr 2} ${voffset -14} -ip: ${alignr}${addr enp34s0} -up: ${upspeed enp34s0}${goto 150}${upspeedgraph enp34s0 15,140 ADFF2F 32CD32 -t} +ip: ${alignr}${addr enp4s0} +up: ${upspeed enp4s0}${goto 150}${upspeedgraph enp4s0 15,140 ADFF2F 32CD32 -t} ${voffset -10} -down: ${downspeed enp34s0}${goto 150}${downspeedgraph enp34s0 15,140 FF0000 8B0000 -t} +down: ${downspeed enp4s0}${goto 150}${downspeedgraph enp4s0 15,140 FF0000 8B0000 -t} ${voffset -5} -totals, up: ${totalup enp34s0} ${alignr}down:${totaldown enp34s0} +totals, up: ${totalup enp4s0} ${alignr}down:${totaldown enp4s0} # disks ---------------------------- ${voffset -10} diff --git a/gdb/.gdbinit b/gdb/.gdbinit index bb8e37a..754cee5 100644 --- a/gdb/.gdbinit +++ b/gdb/.gdbinit @@ -1,10 +1,10 @@ python # c++ stl pretty printing -import sys -sys.path.insert(0, '/home/doug/dev/test.projects/gdb_printers/python') -from libstdcxx.v6.printers import register_libstdcxx_printers -register_libstdcxx_printers (None) +#import sys +#sys.path.insert(0, '/home/doug/dev/test.projects/gdb_printers/python') +#from libstdcxx.v6.printers import register_libstdcxx_printers +#register_libstdcxx_printers (None) # GDB dashboard - Modular visual interface for GDB in Python. diff --git a/vim/.vimrc b/vim/.vimrc index 644fe08..0dc817f 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -136,9 +136,11 @@ function RunMake() endfunction let g:asyncrun_timer = 250 +" jump to word under cursor in a preview window +noremap :exe "ptjump " . expand("") " search for word under cursor in src/ directory -map ::AsyncRun grep -Rn src/ -map :call RunMake() +noremap ::AsyncRun grep -Rn src/ +noremap :call RunMake() noremap :call QfToggle()