티스토리 뷰
Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout <your layout> option.
However, if you want to run custom commands in your terminals, you need to do some work to keep these terminals from closing after a command exits. You accomplish this by tweaking bash to run a command before actually starting.
Pimp your .bashrc
Add this to the end of .bashrc:
# hack to keep a bash open when starting it with a command[[ $startup_cmd ]] && { declare +x $startup_cmd; eval "$startup_cmd"; }
Store a Terminator layout
- Open Terminator preferences
- Go to the Layouts tab
- Press "Add"
- Add a custom command to each split terminal. Format:
env startup_cmd="<your_command>" bash
Edit Terminator boot command
In case you ALWAYS want to run Terminator with certain options, run sudo vim /usr/share/applications/terminator.desktop and change the Exec line to this:
Exec=terminator --layout <your_layout> --maximise --working-directory=<working_directory>
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Dependency
- EMV
- bash
- dump
- JSF
- zookeeper
- SBM
- install
- OOP
- Oracle
- Kubernetes
- nodejs
- jboss
- monitoring
- log4j
- Shell
- spring
- docker
- Heap
- bouncycastle
- spring boot
- ubuntu
- Java
- Maven
- Guava
- svn
- ssh
- SMPP
- Tomcat
- Jose
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
글 보관함