1
0
mirror of https://github.com/balkian/dotfiles.git synced 2025-08-23 08:02:19 +00:00

Batch of changes

This commit is contained in:
J. Fernando Sánchez
2020-04-15 17:19:21 +02:00
parent fd2ca33e0d
commit 2574a62403
16 changed files with 128 additions and 46 deletions

View File

@@ -19,6 +19,9 @@ bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C break-pane
# use vim motion keys while in copy mode
setw -g mode-keys vi
# use the vim resize keys.
@@ -33,17 +36,23 @@ bind > resize-pane -R 1
bind b set-window-option synchronize-panes
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
set -g status-style bg=black,fg=white
set -g status-left '#[fg=yellow]#H #{?window_zoomed_flag,🔍, }'
set -g status-right '#[fg=yellow]#(uptime | sed -e "s/load average/load/g" -e "s/ / /g")' # | cut -d "," -f 2-)'
set -g status-right-length 50
set -g pane-border-status bottom
set -g pane-border-format '#(ps --no-headers -t #{pane_tty} -o args -O-c)'
# Highlight active window
set-window-option -g window-status-current-bg red
set-window-option -g window-status-current-style bg=yellow,fg=black
#set -g window-status-format "#I:#{pane_current_path}"
#set -g window-status-current-format "#I:#{pane_current_path}"
set -g pane-border-status top
set -g pane-border-format '#(ps --no-headers -t #{pane_tty} -o args -O-c) @#{pane_current_path}'
# Dividing pane colors
set -g pane-border-style fg=magenta
set -g pane-active-border-style fg=yellow,bg=default
# Set window notifications
setw -g monitor-activity on
@@ -52,7 +61,11 @@ set -g visual-activity on
# Automatically set window title
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#(basename "#{pane_current_path}")'
set-option -g automatic-rename-format '#(dirname "#{pane_current_path}"| xargs -0 basename)/#(basename "#{pane_current_path}")'
# WM windows
set-option -g set-titles on
set-option -g set-titles-string "#S | #W"
# Mouse and panes
#set -g mouse-utf8 on
@@ -98,9 +111,11 @@ set-option -g default-shell ${SHELL}
unbind m
bind m run "tmux-zoom.sh"
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Fix for emacs and the like
set -s escape-time 0
# Start new-session as default
new-session
#new-session