Skip to content

Instantly share code, notes, and snippets.

@yasintz
Last active May 1, 2021 05:19
Show Gist options
  • Save yasintz/065ce21efa678a0e4d68f7dfb91e9023 to your computer and use it in GitHub Desktop.
Save yasintz/065ce21efa678a0e4d68f7dfb91e9023 to your computer and use it in GitHub Desktop.
Play With Docker
set -g prefix C-F12
unbind C-b
bind-key C-F12 send-prefix
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -s escape-time 0
set -g status-keys vi
setw -g mode-keys vi
setw -g mouse on
setw -g monitor-activity on
bind-key -n C-h select-pane -L
bind-key -n C-j select-pane -D
bind-key -n C-k select-pane -U
bind-key -n C-l select-pane -R
bind-key -n C-Right split-window -h -c "#{pane_current_path}"
bind-key -n C-Down split-window -v -c "#{pane_current_path}"
bind-key -n M-j resize-pane -D 4
bind-key -n M-k resize-pane -U 4
bind-key -n M-h resize-pane -L 4
bind-key -n M-l resize-pane -R 4
bind-key -n F12 resize-pane -Z
bind-key -n F11 new-window -c "#{pane_current_path}"
# Shift arrow to switch windows
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
bind -n F3 send-keys -R \; clear-history
bind-key -n M-i copy-mode
bind-key -T copy-mode-vi v send -X begin-selection
curl https://gist.githubusercontent.com/yasintz/065ce21efa678a0e4d68f7dfb91e9023/raw/a6e1468cee8bbc9a32b59388a42fa9da336f0248/.tmux.conf >> .tmux.conf && wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment