Created
August 24, 2025 15:13
-
-
Save sunasaji/194a48e273ff072dc3aae35601aece7a to your computer and use it in GitHub Desktop.
tmux configuration. Press "C-z l" to save current buffer at $HOME/Documents/memo/YYYY/MM/YYYY-MM-DD-hhmmss_host_panecmd_S_I_P.txt
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
| unbind-key -n C-a | |
| unbind-key -n C-z | |
| unbind-key ^Z | |
| set -g prefix ^Z | |
| set -g prefix2 F12 | |
| setw -g mode-keys vi | |
| bind z send-prefix | |
| bind C-z last-window | |
| set-option -g set-titles on | |
| set-option -g history-limit 100000 | |
| bind-key l 'capture-pane -S - -E -; run-shell "mkdir -p \"$HOME/Documents/memo/$(date +\"%Y\")/$(date +\"%m\")\""; run-shell "tmux save-buffer \"$HOME/Documents/memo/$(date +\"%Y\")/$(date +\"%m\")/$(date +\"%Y-%m-%d-%H%M%S\")_#{host_short}_#{pane_current_command}_#S-#I-#P.txt\""; delete-buffer; send-keys -R C-l; clear-history' | |
| set-option -g default-terminal xterm-256color | |
| set -g status on | |
| set -g status-bg colour235 | |
| set -g status-fg white | |
| set -g status-left-length 20 | |
| set -g status-left "#[fg=colour15,bg=colour27] #S #[fg=colour27,bg=colour235,nobold,nounderscore,noitalics]" | |
| set -g status-right-length 60 | |
| set -g status-right "#[fg=colour245,bg=colour235] #(whoami)@#h | %Y-%m-%d %H:%M " | |
| set -g window-status-format "#[fg=colour244,bg=colour235] #I:#W " | |
| set -g window-status-current-format "#[fg=colour235,bg=colour27] #I:#W #[fg=colour27,bg=colour235,nobold,nounderscore,noitalics]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment