Created
July 8, 2025 13:43
-
-
Save jjasghar/d39f322a76732c42f9a3d1a8bdeecf10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set 256 colors | |
set -g default-terminal "screen-256color" | |
# Set vi keys | |
set-window-option -g mode-keys vi | |
if-shell "uname | grep -q Darwin" { | |
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy' | |
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy' | |
} { | |
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard' | |
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'xclip -in -selection clipboard' | |
} | |
# turn on mouse scroll | |
set -g mouse on | |
# Set the base index at 1, you know you think that way. | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Set inactive/active window styles | |
set -g window-style 'fg=colour247,bg=colour236' | |
set -g window-active-style 'fg=colour250,bg=black' | |
# border colours | |
set -g pane-border-style fg=white | |
set -g pane-active-border-style "bg=default fg=white" | |
# | |
# Set terminal title | |
set-option -g allow-rename on | |
set-window-option -g automatic-rename on | |
set -g set-titles on | |
set -g set-titles-string "#W \| #T" | |
# StatusLine | |
set -g status-position bottom | |
set -g status-bg red | |
set -g status-right '%Y-%m-%d %H:%M ' | |
# Set pane resizing | |
bind e resize-pane -D 10 | |
bind t resize-pane -U 10 | |
# display popups -- https://www.youtube.com/watch?v=7BP9iWiKx8Q | |
bind C-g display-popup -d "#{pane_current_path}" -w 80% -h 80% -E "lazygit" | |
bind C-t display-popup -d "#{pane_current_path}" -w 80% -h 80% -E "zsh" | |
bind C-o display-popup -d "#{pane_current_path}" -w 80% -h 80% -E "bash -i ~/.vim/tmux/chat-popup.sh" | |
bind C-p display-popup -d "#{pane_current_path}" -w 80% -h 80% -E "python3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment