This is my tmux configuration.
brew install tmux
git clone https://github.com/chaozwn/tmux.git ~/.config/tmux
Then
tmux
press ctrl+t+I
export TERM="xterm-256color"
#Tmux的配置和使用
tmux new -s session_name
prefix + d
tmux detach
tmux a -t session_name
tmux kill-session -t session_name
tmux switch -t session_name
tmux rename-session -t session_name new_session_name
prefix $
tmux kill-server
tmux ls
prefix s
prefix I
prefix c
prefix number
prefix x
prefix !
prefix ,
prefix n/prefix p
prefix w
关于这个参数, 是显示的路径
set -g @sessionx-x-path '~/.config'
alt+backspace
will delete the selected sessionCtrl-u
scroll preview upCtrl-d
scroll preview downCtrl-n
select preview upCtrl-p
select preview downCtrl-f
create new tmux session withzoxide
Ctrl-r
"read": will launch a read prompt to rename a session within the listCtrl-w
"window": will reload the list with all the available windows and their previewCtrl-x
will fuzzy read ~/.config or a configureable path of your choice (with @session-x-path)Ctrl-e
"expand": will expand PWD and search for local directories to create additional session fromCtrl-b
"back": reloads the first query. Useful when going into window or expand mode, to go backCtrl-t
"tree": reloads the preview with the tree of sessions+windows familiar from the native session manager (C-S)Ctrl-/
"tmuxinator": fetches a list of tmuxinator sessions and previews them?
toggles the preview pane