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