From 5325ef27525fa7fdc9c8bbcfbbe30a5ae11c5880 Mon Sep 17 00:00:00 2001 From: flipsidecreations Date: Tue, 28 May 2019 13:02:36 -0400 Subject: [PATCH 1/4] Turned on Mouse in TMUX and off in vim --- .tmux.conf | 2 +- .vimrc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 14ba8b5..60e43a3 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -6,7 +6,7 @@ set -g default-terminal "screen-256color" set -g history-limit 50000 # Tmux mouse mode -set-option -g mouse off +set-option -g mouse on # THEME set -g status-bg colour235 diff --git a/.vimrc b/.vimrc index 94f3370..90aed31 100644 --- a/.vimrc +++ b/.vimrc @@ -1,5 +1,6 @@ " execute pathogen#infect() - +set mouse= +set ttymouse= " Allow saving of files as sudo when I forgot to start vim using sudo. cmap w!! w !sudo tee > /dev/null % From 2356bd64c44dd11de0f8a530a7c93ae2aff7962b Mon Sep 17 00:00:00 2001 From: Tom Lawrence Date: Tue, 28 May 2019 22:24:13 -0400 Subject: [PATCH 2/4] updated alia --- .bash_aliases | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index a3b2082..de1ede0 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,9 +1,8 @@ alias gti='git' -alias tmux='tmux -2' +#alias tmux='tmux -2' alias less='less -R' alias diff='colordiff' alias dc='cd' alias nethack-online='ssh nethack@nethack.alt.org ; clear' alias tron-online='ssh sshtron.zachlatta.com ; clear' -alias yams='find . -type f -name "*.yml*" | sed "s|\./||g" | egrep -v "(\.kitchen/|\[warning\]|\.molecule/)" | xargs yamllint -f parsable' alias glog='git log --oneline --graph --color --all --decorate' From 158d945f7a30a7175106d75de2d6ce7f5f6ea56d Mon Sep 17 00:00:00 2001 From: flipsidecreations Date: Sun, 27 Oct 2019 08:05:21 -0400 Subject: [PATCH 3/4] Fixed errors in tmux updated mouse settings and bound m & M to enable/disable mouse support updated to properly display network in status bar --- .tmux.conf | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 60e43a3..1605b11 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -8,13 +8,23 @@ set -g history-limit 50000 # Tmux mouse mode set-option -g mouse on +## Enable mouse with 'm' and disable with 'M' +unbind m +bind m \ + set -g mouse on \;\ + display 'Mouse: ON' +unbind M + bind M \ + set -g mouse off \;\ + display 'Mouse: OFF' + # THEME set -g status-bg colour235 set -g status-fg yellow -set-option -g status-attr dim -set-window-option -g window-status-current-fg brightred #orange -set-window-option -g window-status-current-bg colour236 -set-window-option -g window-status-current-attr bright +#set-option -g status-attr dim +#set-window-option -g window-status-current-fg brightred #orange +#set-window-option -g window-status-current-bg colour236 +#set-window-option -g window-status-current-attr bright set -g status-interval 60 set -sg escape-time 1000 @@ -23,13 +33,13 @@ setw -g aggressive-resize on set -g status-justify centre #set -g status-left '#[fg=green]#(whoami)@#H#[default]' set -g status-left-length 70 -set -g status-left "#[fg=yellow]#(ifconfig eth0 | grep 'inet ' | awk '{print \"eth0 \" $2}') #(ifconfig eth1 | grep 'inet ' | awk '{print \"eth1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') #(ifconfig ppp0 | grep 'inet ' | awk '{print \"vpn \" $2}')" +set -g status-left "#[fg=yellow]#(ifconfig | grep 'inet ' | awk '{print \"Local \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') #(ifconfig ppp0 | grep 'inet ' | awk '{print \"vpn \" $2}')" # show session name, window & pane number, date and time on right side of status bar set -g status-right-length 60 set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::" # set pane colors - hilight the active pane -set-option -g pane-border-fg colour235 #base02 -set-option -g pane-active-border-fg colour240 #base01 +#set-option -g pane-border-fg colour235 #base02 +#set-option -g pane-active-border-fg colour240 #base01 # use PREFIX | to split window horizontally and PREFIX - to split vertically @@ -61,5 +71,5 @@ bind-key -n C-S-Right resize-pane -R 10 # display-message "Windows reordered..." ## pane border and colors -set-option -g pane-active-border-fg yellow -set-option -g pane-border-fg white +#set-option -g pane-active-border-fg yellow +#set-option -g pane-border-fg white From ebfd4f08d55b6038b21db9237cff3975b126fbde Mon Sep 17 00:00:00 2001 From: flipsidecreations Date: Sun, 27 Oct 2019 10:23:36 -0400 Subject: [PATCH 4/4] removed showing local 127.0.0.1 for local network in tmux --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 1605b11..1669c7a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -33,7 +33,7 @@ setw -g aggressive-resize on set -g status-justify centre #set -g status-left '#[fg=green]#(whoami)@#H#[default]' set -g status-left-length 70 -set -g status-left "#[fg=yellow]#(ifconfig | grep 'inet ' | awk '{print \"Local \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') #(ifconfig ppp0 | grep 'inet ' | awk '{print \"vpn \" $2}')" +set -g status-left "#[fg=yellow]#(ifconfig | grep 'inet ' | grep -v 127.0.0.1 | awk '{print \"Local \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') #(ifconfig ppp0 | grep 'inet ' | awk '{print \"vpn \" $2}')" # show session name, window & pane number, date and time on right side of status bar set -g status-right-length 60 set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::"