User Tools

Site Tools


pages:cheatsheets:tmux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pages:cheatsheets:tmux [2022/02/27 11:47] – [tmux.conf] mischerhpages:cheatsheets:tmux [2023/05/03 13:59] (current) – [Links] mischerh
Line 12: Line 12:
   * https://github.com/tmux-plugins/tpm   * https://github.com/tmux-plugins/tpm
   * https://github.com/tmux-plugins/tmux-yank   * https://github.com/tmux-plugins/tmux-yank
 +  * https://www.golinuxcloud.com/tmux-commands/
  
 ===== Links ===== ===== Links =====
Line 17: Line 18:
   * [[https://github.com/tmux/tmux/| tmux Github Repository]]   * [[https://github.com/tmux/tmux/| tmux Github Repository]]
   * [[https://man.openbsd.org/tmux| tmux man page]]   * [[https://man.openbsd.org/tmux| tmux man page]]
 +  * [[https://superuser.com/questions/209437/how-do-i-scroll-in-tmux | How do i scroll in tmux]] - hint <key>CTRL+b</key> - <key>[</key>
  
 ===== Beschreibung ===== ===== Beschreibung =====
Line 70: Line 72:
 |   <key>[</key>        | Scroll-Modus aktivieren, in dem Pfeiltasten zum Scrollen benutzt werden können. Der Scroll-Modus kann mit <key>q</key> beendet werden. | |   <key>[</key>        | Scroll-Modus aktivieren, in dem Pfeiltasten zum Scrollen benutzt werden können. Der Scroll-Modus kann mit <key>q</key> beendet werden. |
  
-===== tmux.conf =====+===== Installation und tmux.conf ===== 
 +This config file is 99% the work of my (soon) former colleague S. Wurm.
 <sxh bash; gutter: false> <sxh bash; gutter: false>
 apt install tmux tmux-plugin-manager apt install tmux tmux-plugin-manager
Line 78: Line 81:
 bind r source-file ~/.tmux.conf bind r source-file ~/.tmux.conf
  
-Enable mouse mode (tmux 2.1 and above+set -g assume-paste-time 1 
-set -g mouse on+set -g base-index 0 
 +#set -g bell-on-alert off 
 +set -g default-command "" 
 +set -g default-shell "/bin/bash" 
 +set -g default-terminal "screen-256color" 
 +set -g destroy-unattached off 
 +set -g detach-on-destroy on 
 +set -g display-panes-active-colour red 
 +set -g display-panes-colour blue 
 +set -g display-panes-time 1000 
 +set -g display-time 750 
 +set -g history-limit 2000 
 +set -g key-table "root" 
 +set -g lock-after-time 0 
 +set -g lock-command "lock -np" 
 +set -g message-command-style fg=yellow,bg=black 
 +set -g message-style fg=black,bg=yellow 
 +set -g mode-keys vi 
 +set -g mouse off 
 +set -g prefix C-b 
 +set -g prefix2 None 
 +set -g renumber-windows off 
 +set -g repeat-time 500 
 +#set -g set-remain-on-exit off 
 +set -g set-titles on 
 +set -g set-titles-string "#S:#I:#W - "#T" #{session_alerts}" 
 + 
 +# Status Style (default
 +#set -g status on 
 +#set -g status-interval 15 
 +#set -g status-justify left 
 +#set -g status-keys vi 
 +#set -g status-left "[#S] " 
 +#set -g status-left-length 20 
 +#set -g status-left-style default 
 +#set -g status-position bottom 
 +#set -g status-right " "#{=21:pane_title}" %H:%M %d-%b-%y" 
 +#set -g status-right-length 40 
 +#set -g status-right-style default 
 +#set -g status-style fg=black,bg=green 
 + 
 +# Status Style (wurmobil) 
 +set -g pane-active-border-style fg=green,bg=black 
 +set -g pane-border-style fg=white,bg=black 
 +set -g message-style fg=black,bg=green 
 +set -g window-status-style bg=black 
 +set -g window-status-current-style fg=green 
 +set -g window-status-activity-style fg=yellow 
 +set -g status-justify left 
 +set -g status-style bg=black,fg=white 
 +set -g status-left '#[fg=yellow]#S #[fg=green]][#[default] ' 
 +set -g status-left-length 40 
 +# this one draws the window title in the status bar, but eats up a lot of space 
 +set -g status-right ' #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]' 
 + 
 +set -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
  
 # don't rename windows automatically # don't rename windows automatically
-set-option -g allow-rename off+#set-option -g allow-rename off 
 + 
 +# Activity Monitor 
 +set -g monitor-activity on 
 +set -g activity-action none 
 +set -g visual-activity off 
 +set -g visual-bell off 
 +set -g visual-silence off 
 +set -g word-separators " -_@" 
 +set -g bell-action none 
 + 
 +# Tmux Plugin Manager configuration
  
 # List of plugins # List of plugins
 set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
 set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
 +set -g @plugin 'tmux-plugins/tmux-resurrect'
  
 # Other examples: # Other examples:
 # set -g @plugin 'github_username/plugin_name' # set -g @plugin 'github_username/plugin_name'
-# set -g @plugin 'github_username/plugin_name#branch' +# set -g @plugin 'git@github.com/user/plugin' 
-# set -g @plugin 'git@github.com:user/plugin' +# set -g @plugin 'git@bitbucket.com/user/plugin'
-# set -g @plugin 'git@bitbucket.com:user/plugin'+
  
 # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
-run -b '/usr/share/tmux-plugin-manager/tpm'+run '~/.tmux/plugins/tpm/tpm' 
 + 
 +source /usr/share/tmux/powerline.conf
 </sxh> </sxh>
  
pages/cheatsheets/tmux.1645962459.txt.gz · Last modified: 2022/02/27 11:47 by mischerh