启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
tmux at [-t 会话名]
| #cloud-config | |
| package_update: true | |
| package_upgrade: true | |
| runcmd: | |
| - [ bash, -lc, "/opt/bootstrap/install.sh > /var/log/bootstrap.log 2>&1" ] | |
| runcmd: | |
| # Set domain | |
| - DOMAIN="irmo.westus2.cloudapp.azure.com" |
| # Set zsh as shell | |
| set-option -g default-shell /usr/bin/zsh | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| bind -r L resize-pane -L 10 # 向左扩展 | |
| bind -r R resize-pane -R 10 # 向右扩展 |
| # Most part of this file is created by https://www.gitignore.io | |
| ### Node ### | |
| # Logs | |
| logs | |
| *.log | |
| # Runtime data | |
| pids | |
| *.pid |
| j=1 | |
| l=10 | |
| word="close" | |
| for i in `ls | grep 1` | |
| do | |
| newWord=`echo $i | cut -d _ -f 2` | |
| if [[ "$word" != "$newWord" ]];then | |
| let j=1 | |
| fi | |
| if [[ "$j" -lt "$l" ]] |
| tell application "System Events" to tell process "NeteaseMusic" | |
| click menu item "下一个" of menu 1 of menu bar item "控制" of menu bar 1 | |
| end tell |