Skip to content

Instantly share code, notes, and snippets.

@gomin1d
Last active December 10, 2018 19:46
Show Gist options
  • Save gomin1d/1920f43be8d7f8e81d516031c7a5f7f3 to your computer and use it in GitHub Desktop.
Save gomin1d/1920f43be8d7f8e81d516031c7a5f7f3 to your computer and use it in GitHub Desktop.
Tmux автонастройка базовых окон при открытии сессии ssh
# Добавить в конец файла .bashrc или .profile
# Tmux
if [ $(tmux ls | wc -l) -eq 0 ] ; then
tmux new -d -n htop 'htop; bash'
for d in ~/servers/*; { tmux neww -n $(basename $d) -c $d 'mc; bash'; }
tmux neww -n work 'mc; bash'
fi
tmux attach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment