tmux
本文最后更新于 555 天前,其中的信息可能已经有所发展或是发生改变。

Installing tmux

Install wiki

PlatformInstall Command
Debian or Ubuntuapt install tmux
macOS (using Homebrew)brew install tmux

Useful cmd / shortcut

CmdShortcutDescription
man tmuxShow tmux documentation
tmux new -s [Session Name]Create a new tmux session
tmux a -t [Session Name]Attach to an existing session
tmux detachprefix + dDetach current session
tmux kill-session -t [Session Name]Delete a specific Session
prefix + rSource the .tmux.conf file
prefix + ,Rename current active window
prefix + cCreate new window
prefix + &Kill current window
prefix + nNext window
prefix + pPrevious window
prefix + wList all Sessions and windows
prefix + |Split windows left and right
prefix + -Split windows up and down
Ctrl + h/j/k/lMove to the left/down/up/right pane, enabled by vim-tmux-navigator
prefix + h/j/k/lResize pane, direction keys can be repeated
prefix + mMaximize/Unmaximize current pane

Personal configuration

All key remappings and options setting go into~/.tmux.conf (Remeber to source the config file after you make changes)

My prefix key is Ctrl-a

$ touch ~/.tmux.conf
$ tmux source ~/.tmux.conf # run this line after you make changes

Plugins

Install tpm

First, we will clone tpm into ~/.tmux folder under the home folder

$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

# Otherwise you may get "~/.tmux/plugins/tpm/tpm' returned 127" by executing the following steps

Installing Plugins

  1. Add new plugin to ~/.tmux.conf with set -g @plugin '...'
  2. Make sure run -b '~/.tmux/plugins/tpm/tpm' is at the bottom of your .tmux.conf
  3. Press prefix + I (capital i, as in Install) to fetch the plugin. (default prefix is ctrl+b)

Uninstalling Plugins

  1. Remove (or comment out) plugin from the list.
  2. Press prefix + alt + u (lowercase u as in uninstall) to remove the plugin. Or you can manually delete the plugins stored in ~/.tmux/plugins/

Theme

Ref

Everything you need to know about tmux – Plugins Manager

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 协议 。转载请注明出处!
您可以通过 RSS 订阅本站文章更新。
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇