tmux
최근에 가능성을 발견 하고 yakuake
/ konsole
(지진 형 터미널) 내부에서 사용하고 있습니다 . 그러나 tmux
랩톱을 시작하거나 다시 시작할 때마다 수동으로 시작 해야합니다 yakuake
.
시작tmux
yakuake
konsole
하는 방법 – 자동 – 언제 / 시작 합니까?
Archlinux wiki의 모든 쉘 로그인 기사 에있는 Start tmux를 기반으로 , tmux
다음 코드로 쉘에서 시작할 수 있습니다 .
Zsh
또는 Bash
당신에 추가 zsh
또는 bash
(일반적으로 구성 ~/.zshrc
또는 ~/.bashrc
) 다음 코드와 세션을 다시 시작합니다 :
function start_tmux() {
if type tmux &> /dev/null; then
#if not inside a tmux session, and if no session is started, start a new session
if [[ $HOST == "laptop" && -z "$TMUX" && -z $TERMINAL_CONTEXT ]]; then
(tmux -2 attach || tmux -2 new-session)
fi
fi
}
start_tmux
Fish
귀하의 추가 fish
(일반적으로 구성 ~/.config/fish/config.fish
) 다음 코드와 세션을 다시 시작합니다 :
function start_tmux
if type tmux > /dev/null
#if not inside a tmux session, and if no session is started, start a new session
if test -z "$TMUX" ; and test -z $TERMINAL_CONTEXT
tmux -2 attach; or tmux -2 new-session
end
end
end
start_tmux
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다