aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/tmux
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-11-27 15:37:48 +0100
committerneodarz <neodarz@neodarz.net>2018-11-27 15:38:23 +0100
commit15a404e6a0d95383f02423860a599ad987830424 (patch)
tree9d436add216637e8da066f6f85611306dfc4ba85 /cheat/.cheat/tmux
parent8e781f77466eb7ee6b78301042a37b5f61766e70 (diff)
downloaddotfiles_ascii-15a404e6a0d95383f02423860a599ad987830424.tar.xz
dotfiles_ascii-15a404e6a0d95383f02423860a599ad987830424.zip
Add some cheat
Diffstat (limited to '')
-rw-r--r--cheat/.cheat/tmux165
1 files changed, 165 insertions, 0 deletions
diff --git a/cheat/.cheat/tmux b/cheat/.cheat/tmux
new file mode 100644
index 0000000..161e4ff
--- /dev/null
+++ b/cheat/.cheat/tmux
@@ -0,0 +1,165 @@
+# Start tmux:
+tmux
+
+# Prefix == Ctrl-b or Ctrl-w
+
+# Detach from tmux:
+Prefix d
+
+# Restore tmux session:
+tmux attach
+
+# Detach an already attached session (great if you are moving devices with different screen resolutions)
+tmux attach -d
+
+# Display session:
+tmux ls
+
+# Rename session:
+Prefix $
+
+# Switch session:
+Prefix s
+
+# Start a shared session:
+tmux -S /tmp/your_shared_session
+chmod 777 /tmp/your_shared_session
+
+# Help screen (Q to quit):
+Prefix ?
+
+# Scroll in window:
+Prefix PageUp/PageDown
+
+# Reload configuation file
+Prefix : source-file /path/to/file
+
+# lauch command
+Prefix :
+
+# Zoom in tab
+Prefix z
+
+# Open pane in the current directory (alias configured)
+# Vertical
+Prefix _
+# Horizontal
+Prefix /
+
+# Toggle recording terminal into a file
+Prefix P
+
+# Window management
+# =================
+
+# Create window:
+Prefix c
+
+# Destroy window:
+Prefix &
+
+# Switch between windows:
+Prefix [0-9]
+or
+Prefix Arrows
+
+# Split windows horizontally:
+Prefix %
+
+# Split windows vertically:
+Prefix "
+
+# Turn a pane into a Window
+Prefix !
+
+# Pane management
+# ===============
+
+# kill pane
+Prefix x
+
+# Buffer with vim keys
+# ====================
+
+# jump to next word
+w
+
+# jump back one word
+b
+
+# jump to the next character
+f <char>
+
+# move one page up
+Ctrl-b
+
+# move one page down
+Ctrl-f
+
+# Search in buffer (use <n> and <N>)
+?
+
+# For search downward
+/
+
+# Select some text
+# Use <Enter> to quit and copy selected text in buffer
+space
+
+# paste content captured
+Prefix ]
+
+# commands
+# ========
+
+# Copy the entire visible contents pane to the paste buffer
+capture-pane
+
+# show the content of the paste buffer
+show-buffer
+
+# list all pasted buffer
+list-buffers
+
+# Choos a buffer and past
+choose-buffer
+
+# Turn Window into a pane, take window of a session and join it to the current
+# session
+join-pane <session_name>:<window_id>
+
+# Mouve pane to another window
+join-pane -s <session_name>:<window_id>.<pane_id>
+
+# Move pane from pane to another
+join-pane -s <session_name>:<window_id>.<pane_id> <session_name>:<window_id>
+
+# Move window between sessions
+move-window -s <session_name>:<session_id> -t <session_id>
+
+# Multi user
+# ==========
+
+# For use multi user you must make different session for have habilty to
+# seperate window
+
+# first create a simple session
+tmux new-session -s groupedsession
+
+# And connect to it with another session
+tmux new-session -t groupedsession -s mysession
+
+# Session management
+# ==================
+
+# Switch between session
+# Go to previous section
+Prefix (
+# Go to next section
+Prefix )
+
+# Display list of sessions
+Prefix s
+
+# Move window betweeb sessions
+Prefix . <session_name>