Live data from Hacker News

Show HN: Cockpit – create tmux panes and windows with ease

cockpit.27ae60.com

11–20 of 49 posts

Re: Show HN: Cockpit – create tmux panes and windows with ease

#12
post #7
post #2

It's quite an indictment of the current state of our tooling (not just tmux) that such an application as this is necessary. Why isn't it easy to configure this in tmux itself, and persist the resulting configuration?

This doesn't let you persist ad hoc setups, but I have a `~/lib/tmux-code` file that I source from `~/.bash_profile` with entries like this: function ins-code { env_name=code long_name=insurance short_name=ins tmux_session=${short_name}-${env_name} if tmux list-sessions | grep ${tmux_session}; then tmux attach-session -t ${tmux_session} else cd ~/src/${long_name}/backend/app/models && \ tmux new-session -d -s ${tmux_…

I highly recommend https://github.com/tmuxinator/tmuxinator if you haven't tried it, I've actually used it to run whole microservice environments locally and works without a hitch

Re: Show HN: Cockpit – create tmux panes and windows with ease

#13

I thought about building something like this every time I messed with tmuxinator layouts. Nice!

Thanks.I wanted an easy script creator from my dynamic yet simple layouts, so I thought of building Cockpit. Now, all I do is re-run the script generated from the app.

Re: Show HN: Cockpit – create tmux panes and windows with ease

#14
post #2

It's quite an indictment of the current state of our tooling (not just tmux) that such an application as this is necessary. Why isn't it easy to configure this in tmux itself, and persist the resulting configuration?

My use case for building Cockpit was to easily generate scripts for my different layouts. These scripts I use with https://github.com/fitztrev/shuttle so I could load my workspace with a single click. I am not sure if this application is necessary. However, I think everyone can find their own use cases.
Post reply on HN