https://github.com/rofrol/stmux
stmux is a script to create tmux session with name taken from current directory and config file .tmux_session
https://github.com/rofrol/stmux
tmux
Last synced: over 1 year ago
JSON representation
stmux is a script to create tmux session with name taken from current directory and config file .tmux_session
- Host: GitHub
- URL: https://github.com/rofrol/stmux
- Owner: rofrol
- License: other
- Created: 2019-02-26T03:37:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T11:52:55.000Z (over 6 years ago)
- Last Synced: 2025-04-05T15:06:27.516Z (over 1 year ago)
- Topics: tmux
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stmux
`stmux` is a script to create tmux session.
Session name is based on current directory.
Config file is a bash file named `.tmux_session` and placed inside your project directory.
## Run
add `stmux` to your `$PATH` for easier use.
```bash
$ cp .tmux_session.example my_project/.tmux_session
$ stmux
# window with three horizonal panes should be open
```
## Add .tmux_session to ignore file
You may want to add `.tmux_session` to your global ignore file for git or other scm.
## inside tmux session
When you are in tmux session, it will create detached session and will run `switch-client`.
## Based on
- Brian P. Hogan - tmux 2 Productive Mouse-Free Development-Pragmatic Bookshelf (2017), chapter Creating a Custom Setup with tmux Commands
- Attach or create tmux session named the same as current directory.
- https://github.com/thoughtbot/dotfiles/blob/master/bin/tat
- https://thoughtbot.com/upcase/videos/tmux-navigation
- https://stackoverflow.com/questions/16398850/create-new-tmux-session-from-inside-a-tmux-session/34778112#34778112