tmuxinator
2019-02-20 本文已影响0人
413x
# ~/.tmuxinator/gdb-basic.yml
name: gdb-basic
root: ~/
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: editor
# Specitifes (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
# startup_pane: 1
# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false
# Runs after everything. Use it to attach to tmux with custom options etc.
# post: tmux -CC attach -t gdb-basic
windows:
- gdb-skia:
layout: e964,239x58,0,0[239x37,0,0{119x37,0,0,5,59x37,120,0[59x18,120,0,9,59x18,120,19,11],59x37,180,0,10},239x20,0,38{74x20,0,38,6,82x20,75,38,7,81x20,158,38,8}]
# Synchronize all panes of this window, can be enabled before or after the pane commands run.
# 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
# synchronize: after
panes:
- tty ;python ~/gdbscript/create_auto_tmux.py; echo dashboard source -output `tty` >> ~/.gdbinit.d/auto.tmux
- tty ; echo dashboard assembly -output `tty` >> ~/.gdbinit.d/auto.tmux
- tty ; echo dashboard register -output `tty` >> ~/.gdbinit.d/auto.tmux
- tty ; echo dashboard stack -output `tty` >> ~/.gdbinit.d/auto.tmux
# - tty ; echo dashboard expression -output `tty` >> ~/.gdbinit.d/auto.tmux
- tty ; fish --init-command="cd ~/aosp/target/skia/skia"
- tty ; echo dashboard threads -output `tty` >> ~/.gdbinit.d/auto.tmux
- tty ; echo dashboard expression -output `tty` >> ~/.gdbinit.d/auto.tmux
- code-review: cd ~/code-review/skia/ ;vim -S Session.vim
- write-test: cd ~/code-review/skia/ ;vim .
- terminal: fish --init-command="cd ~/code-review/skia/"
with open('/home/alex/.gdbinit.d/auto.tmux','w+') as f:
f.write('dashboard source -style context 30\n')
f.write('dashboard -style syntax_highlighting \'fruity\' \n')