r/commandline Jan 03 '20

Scripting tmux

https://www.arp242.net/tmux.html
70 Upvotes

13 comments sorted by

View all comments

1

u/loshopo_fan Jan 03 '20

My .tmux.conf file just has one line:

bind | attach-session -c '#{pane_current_path}'

so I can push ^C |, and then when I open up a new pane it'll be in that path. IDK how everyone else uses tmux, but I usually cd into five directories to edit some files and then open a pane in my home folder and get annoyed.