-
-
Save drmats/4b4f8167e75b36910ddda084c852ee8b to your computer and use it in GitHub Desktop.
source "/usr/share/tmux/powerline.conf" | |
# remap prefix to Control + a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# quick pane cycling | |
# unbind ^A | |
# bind ^A select-pane -t :.+ | |
# open new window/pane in the same working directory | |
bind-key c new-window -c "#{pane_current_path}" | |
bind-key % split-window -h -c "#{pane_current_path}" | |
bind-key '"' split-window -v -c "#{pane_current_path}" |
^a then c - create a new window
^a then d - detach session
^a then n - switch to the next window
^a then , then [type something] then [enter] - rename the current window
^a then % - split the current window into panes vertically
^a then " - split the current window into panes horizontally
^a then ↑ to move to the above pane (works for all four arrows)
^a then q - show pane numbers, then (optionally) the number to switch to that pane
^a then [alt]+↑ - resize the current pane up (works for all four arrows)
^a then x - kill the current pane (or window if it only has one pane)
^a then [ - enter copy mode, then four arrow keys to move, [ctrl]+[space] - enter block mode, [alt]+w - copy
^a then ] - paste buffer
tmux list-sessions
tmux attach-session -t [number]
tmux show-buffer
# .bashrc
if [ -f `which powerline-daemon` ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bash/powerline.sh
fi
^a then w - list windows
^a then t - big clock
tmux list-sessions = tmux ls
tmux attach-session = tmux a
^a : setw synchronize-panes on
^a : setw synchronize-panes off
dnf install tmux tmux-powerline