From 8d98ba4db53e424957bcbc60a3e8da2eb549294a Mon Sep 17 00:00:00 2001 From: HerrCraziDev Date: Fri, 23 Dec 2022 23:18:24 +0100 Subject: [PATCH] update dotfiles --- .termrc | 3 +++ .zshrc | 2 +- tmux/.tmux.conf | 19 +++++++++++++++++-- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.termrc b/.termrc index ffaa757..963f99a 100644 --- a/.termrc +++ b/.termrc @@ -13,4 +13,7 @@ echo -e '\e[34m [termrc] Config reloaded\e[0m' # Usual env vars export EDITOR=/usr/bin/vim export LANG="en_US.UTF-8" +export LANGUAGE="en_US.UTF-8" +# Decompress raw zlib files (.dat) +zlibd() (printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc) diff --git a/.zshrc b/.zshrc index db33b8d..5e2c6d0 100644 --- a/.zshrc +++ b/.zshrc @@ -16,7 +16,7 @@ if [ -d $ZSH ]; then fi # Personal prompt -export PROMPT="%F{yellow}[ %F{green}%B%n%F{yellow}@%F{cyan}%m %F{blue}%~%b %F{yellow}] %(!.%F{red}.%F{yellow})%B#%b%f " +export PROMPT="%F{yellow}[ %F{green}%B%n%F{yellow}@%F{cyan}%m %F{blue}%~%b %F{yellow}] %(!.%F{red}.%F{yellow})%B$%b%f " export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index a1a531f..5a463d0 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -21,19 +21,34 @@ bind Tab last-window bind Enter copy-mode bind Escape copy-mode +# Copy mode +bind C-v paste-buffer +bind -T copy-mode-vi Enter send -X copy-selection-no-clear \; send -X copy-pipe-and-cancel "xclip -i -sel c" \; display " [tmux] copied!" +bind -T copy-mode-vi C-c send -X copy-selection-no-clear \; send -X copy-pipe-and-cancel "xclip -i -sel c" \; display " [tmux] copied!" +bind -T copy-mode-vi y send -X copy-selection-no-clear \; send -X copy-pipe "xclip -i -sel c" \; display " [tmux] copied!" +bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-no-clear +bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word +bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line +bind -T copy-mode-vi Escape send -X cancel + + + # Window actions -bind , rename-window +bind y rename-window bind r source-file ~/.tmux.conf; display " [tmux] ♦ Configuration reloaded from .tmux.conf" # Colors set -g display-panes-active-colour colour71 set -g display-panes-colour colour244 - +# Set text modes #set -g utf8 on #set-option -g status-utf8 on set -g default-terminal "xterm-256color" +# Enable mouse integration +set -g mouse on + set -g status-bg colour235 set -g status-fg white set -g status-left '#(sh ~/.tmux/health-indicator.sh #{client_prefix})#S #(~/.tmux/segment.sh end 31 29) ▣ #{session_windows} #{?session_many_attached,#(~/.tmux/subsegment.sh end) 🖥 #{session-attached},}#(~/.tmux/segment.sh end 29 71) #[fg=colour235]#H #(~/.tmux/segment.sh end 71 65) #[fg=colour235]#(whoami) #(~/.tmux/segment.sh end 65 235)'