ターミナル開始時に自動的にtmuxにアタッチする設定
.zshrcに以下を追加
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Start tmux on every shell login | |
#https://wiki.archlinux.org/index.php/Tmux#Start_tmux_on_every_shell_login | |
if which tmux 2>&1 >/dev/null; then | |
#if not inside a tmux session, and if no session is started, start a new session | |
test -z "$TMUX" && (tmux attach || tmux new-session) | |
fi |
0 件のコメント:
コメントを投稿