Do you have a standard workflow that involves setting up a specific tmux layout, or running certain commands? By writing tmux scripts, you can automate your tedious daily setup, while simultaneously documenting it for yourself. We'll cover the tmux command equivalents of common key bindings and write some simple, useful scripts.

# Set some configuration options
SESSION=$USER # Create a new, detached session
tmux new-session -d -s $SESSION # Create a second window
tmux new-window -t $SESSION: -n 'webserver' # Select and configure the first window
tmux select-window -t $SESSION:
tmux split-window -v
tmux send-keys 'cd examples/react; python -m SimpleHTTPServer' C-m # Attach to the session
tmux attach-session -t $SESSION

最新文章

  1. JavaScript实现DOM对象选择器
  2. 我的MYSQL学习心得(八) 插入 更新 删除
  3. 【转】react 状态与属性区别
  4. python (11)文件的读写 按行读文件
  5. Android 定时器TimerTask 简单使用
  6. Linux下top订购具体解释
  7. JS 获取各个宽度和高度
  8. ecshop首页调用指定商品分类下的商品品牌列表
  9. 初级班 Linux使用
  10. VBA基础概念
  11. linux下执行sh文件报错:oswatcher_restart.sh: line 13: ./startOSW.sh: Permission denied
  12. HDU1150 Machine Schedule(二分图最大匹配、最小点覆盖)
  13. Oracle_SQL92_连接查询
  14. html标记语言 --框架
  15. python发送smtp 邮件 图片
  16. mysql GTID主从配置
  17. Linux运行时I/O设备的电源管理框架【转】
  18. Unable to convert MySQL date/time value to System.DateTime问题解决方案
  19. leetcode 388.Lonest Absolute File Path
  20. LINUX 中实现逻辑卷、自动挂载

热门文章

  1. 14.NPM 常用命令
  2. POJ 1082 Calendar Game
  3. 一个虐你千百遍的问题:“RPC好,还是RESTful好?”
  4. sql 高性能存储过程分页
  5. 18. springboot整合jsp
  6. 2.Spring Boot 入门
  7. ORACLE10g R2【单实例 FS→单实例FS】
  8. JQuery滑动到指定位置
  9. React render return 空行问题
  10. jvm compile