diff --git a/.bash_aliases b/.bash_aliases index 3e4fa7a..7dca326 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -46,3 +46,31 @@ fi # + Execute tmux on start export TERMINAL='konsole --profile Kapper -e tmux' +# Less colors for man pages +export PAGER=less +default=$(tput sgr0) +red=$(tput setaf 1) +green=$(tput setaf 2) +purple=$(tput setaf 5) +orange=$(tput setaf 9) +# Begin blinking +export LESS_TERMCAP_mb=$red +# Begin bold +export LESS_TERMCAP_md=$orange +# End mode +export LESS_TERMCAP_me=$default +# End standout-mode +export LESS_TERMCAP_se=$default +# Begin standout-mode - info box +export LESS_TERMCAP_so=$purple +# End underline +export LESS_TERMCAP_ue=$default +# Begin underline +export LESS_TERMCAP_us=$green +# Allow mouse wheel movement for less output (manpages, diffs) +export LESS='--mouse --wheel-lines 2' +# Set additional flags for less +# + -R for raw control characters +# + -w to highlight first unread line when jumping N>1 lines down +# + -#2 to shift 2 columns horizontally when right / left arrow is pressed +export LESS="$LESS -R -w -#2" diff --git a/.tmux.conf b/.tmux.conf index dd348c5..e55823b 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -20,28 +20,7 @@ #+ Vim plugin 'Colorizer' does not reflect the actual 256colour values #+ See https://jonasjacek.github.io/colors/ for a full list of 256colours -# Settings for terminal text selection / copy options -# + Source: https://www.seanh.cc/2020/12/27/copy-and-paste-in-tmux/ -# + Depends: https://github.com/tmux-plugins/tmux-yank#linux set -g mouse on -# These bindings are for X Windows only. If you're using a different -# window system you have to replace the `xsel` commands with something -# else. See https://github.com/tmux/tmux/wiki/Clipboard#available-tools -bind -T copy-mode DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i" -bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i" -bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i" -bind -T copy-mode TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i" -bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i" -bind -n TripleClick1Pane select-pane \; copy-mode -M \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i" -bind -n MouseDown2Pane run "tmux set-buffer -b primary_selection \"$(xsel -o)\"; tmux paste-buffer -b primary_selection; tmux delete-buffer -b primary_selection" -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-yank' -set -g @yank_action 'copy-pipe-no-clear' -bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard" -bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard" - -set-option -s set-clipboard external -bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i" # remap shortcut prefix from 'C-b' to 'C-z' unbind C-b @@ -164,6 +143,3 @@ set -g @scroll-speed-num-lines-per-scroll 2 # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm' -# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -#run '~/.tmux/plugins/tpm/tpm' -