Ho sempre avviato 3 terminali con un server dev in una, una shell python nel secondo e un cd
nel terzo, pronto per l'ingresso bash.
Vorrei avere nel mio .bashrc una scorciatoia per impostare questo con un command: eseguire lo screen
, dividere in tre colonne e avviare un command diverso in each parte dello schermo.
Come lo posso fare ?
EDIT: So già che posso fare un alias per rendere lo screen -c
e leggere da un file di configuration specifico, sono solo incerto di cosa mettere in esso.
Stai cercando qualcosa di simile?
$ cat s screen -dm -S moo -t hello screen -S moo -X screen -t cruel screen -S moo -X screen -t world screen -S moo -p 0 -X stuff $'vim\r' sleep 2 screen -S moo -p 1 -X stuff $'watch dmesg\r' sleep 2 screen -S moo -p 2 -X stuff $'top\r'
Potresti usare i layout nel tuo screenrc
# ------------------------------------------------------------------------------ # STARTUP SCREENS # ------------------------------------------------------------------------------ layout new split -v split -v screen htop focus next screen -t python python focus next chdir /srv screen -t dir
Terminator sarebbe qualcosa di utile per te?
Dal loro sito:
The goal of this project is to produce a useful tool for arranging terminals. It is inspired by programs such as gnome-multi-term, quadkonsole, etc. in that the main focus is arranging terminals in grids (tabs is the most common default method, which Terminator also supports).