Metainformationen zur Seite
tmux
Noch zugucken:https://github.com/rothgar/awesome-tmux https://www.tecmint.com/tips-for-tmux-terminal-sessions/
Copy over ssh with x-server
https:/www.rushiagr.com/blog/2016/06/16/everything-you-need-to-know-about-tmux-copy-pasting-ubuntu/ ## Scroll in Terminal Window https://dev.to/terkwood/fast-scrolling-with-tmux-and-alacritty-3dmn
# mousemode on/off bind-key m set-option -g mouse ; display "Mouse: #{?mouse,ON,OFF}" #for history scrolling with mousemode off set -g terminal-overrides "xterm*:smcup@:rmcup@"
Putty Printer to windows Clipboard
detach other sessions
https://stackoverflow.com/a/30159001
tmux a -dt <session-name> a=attach d=detach other clients (so only you can attach to this session) t=target
Pane in Window und zurück:
Quellen: https://bezhermoso.github.io/til/move-a-tmux-pane-from-one-window-to-another/
break the pane out via break-pane. This is bound to <prefix> ! by default. Execute this in the tmux command-line: :join-pane -t <int>, where <int> is the index of the window you want to move it into. You can optionally specify -h or -v to explicitly tell tmux to attach the current pane as a horizontal-split or a vertical-split on the target window, respectively.
tmux change display after new session
Quelle: https://goosebearingbashshell.github.io/2017/12/07/reset-display-variable-in-tmux.html
export DISPLAY="`tmux show-env | sed -n 's/^DISPLAY=//p'`"
tmux xclip x11 wrong authentication
https://unix.stackexchange.com/a/162675
sudo su xauth merge /home/user/.Xauthority
tmux conf
# prefix key like scrren set-option -g prefix C-a ##tmux source ~/.tmux.conf # keymap for reload tmux bind-key r source-file ~/.tmux.conf ; display-message "tmux.conf reloaded." ## -n = no prefix-key; S=shift # fast open and rename window bind-key -n S-Down new-window -c "#{pane_current_path}" bind-key -n S-Up command-prompt -I "rename-window " # fast navigation between windows bind-key -n S-Left previous-window bind-key -n S-Right next-window ## Re-number tmux move-window -r bind-key m move-window -r # history lines set-option -g history-limit 10000 # start numbers of window with 1 set-option -g base-index 1 set-window-option -g pane-base-index 1 # lease arrowkey after window change set-option -g repeat-time 0 # mouse support set-option -g mouse on # color shell set-option -g default-terminal screen-256color # statusline infos set -g status-interval 2 set -g status-left '[#S]' set -g status-right '%l:%M' set-option -g status-justify left set-window-option -g window-status-current-format '#I:#W#F' set-window-option -g window-status-format '#I:#W#F' # statusline colors: set-option -g status on set-option -g status-bg blue set-option -g status-fg white #show active window setw -g monitor-activity on set -g visual-activity on #auto renumber winddows set -g renumber-windows on #split panes bind - split-window -v # split horizontal bind | split-window -h # split vertical
tmux plugins
# Prefix+I = install # Prefix + u = upate # Better Controlling of panes set -g @plugin 'tmux-plugins/tmux-pain-control' # RegEx Search set -g @plugin 'tmux-plugins/tmux-copycat' # Copy to the system clipboard in tmux. set -g @plugin 'tmux-plugins/tmux-yank' # Show press Prefix set -g @plugin 'tmux-plugins/tmux-prefix-highlight' # LOgging tmux screen and console set -g @plugin 'tmux-plugins/tmux-logging'
<blockquote> * ToDo: tab completion: ''%%https://github.com/imomaliev/tmux-bash-completion%%'' * befehle * plugins </blockquote>