aboutsummaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-03 00:37:03 +0200
committerMateja <mail@matejamaric.com>2021-04-03 00:37:03 +0200
commita945feb02f6d64df2219ea1044251a7fe2ea98fc (patch)
treefe0242495eb35317fd5358e403a047657dfa04b5 /tmux
downloadmisc-a945feb02f6d64df2219ea1044251a7fe2ea98fc.tar.gz
misc-a945feb02f6d64df2219ea1044251a7fe2ea98fc.zip
Initial commit.
Diffstat (limited to 'tmux')
-rw-r--r--tmux33
1 files changed, 33 insertions, 0 deletions
diff --git a/tmux b/tmux
new file mode 100644
index 0000000..8ac6015
--- /dev/null
+++ b/tmux
@@ -0,0 +1,33 @@
+# Help
+ctrl+b ?
+
+# New named session
+tmux new -s session_name
+
+# Detach
+crtl+b d
+
+# List sessions
+tmux ls
+
+# Re-attach
+tmux attach -t session_name # or number if unnamed
+
+# Working with windows
+Ctrl+b c Create a new window (with shell)
+
+Ctrl+b w Choose window from a list
+Ctrl+b 0 Switch to window 0 (by number )
+Ctrl+n Switch to next window
+Ctrl+p Switch to previous window
+
+Ctrl+b , Rename the current window
+
+# Working with panes
+Ctrl+b % Split current pane horizontally into two panes
+Ctrl+b " Split current pane vertically into two panes
+
+Ctrl+b o Go to the next pane
+Ctrl+b ; Toggle between the current and previous pane
+
+Ctrl+b x Close the current pane