Last active
December 10, 2018 19:46
-
-
Save gomin1d/1920f43be8d7f8e81d516031c7a5f7f3 to your computer and use it in GitHub Desktop.
Tmux автонастройка базовых окон при открытии сессии ssh
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
# Добавить в конец файла .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