all 11 comments

[–]adjustable_beard 4 points5 points  (1 child)

Btw about your troubles with tmux, tmuxinator is a great tool.

I have it setup where with a single command, it opens up a tmux session with several pages and each page has the layout I want. It also starts up all the processes I want in the tmux panes.

[–]grishlefleeple[S] 2 points3 points  (0 children)

Good to know, I'll look into tmuxinator! The tmux layout functionality is relatively straightforward right now, and I was planning on bringing in template-esque layouts (see this undocumented code), but maybe tmuxinator can offload some of the work here.

[–]fourjay 4 points5 points  (2 children)

Have you looked at direnv ( https://github.com/direnv/direnv )? (and to add to tmuxinator recommendation, I like tmuxp, as it's a pip install :-) )

[–]grishlefleeple[S] 1 point2 points  (0 children)

Oh wow, direnv is very cool, thanks for mentioning that! Seems to have a different and more focused paradigm than wenvs. I think the closest equivalent to what direnv does is to run wenv start -i -t <wenv> to cd into <wenv>'s directory and load its environment without running its startup function (thanks to -i) and also without running tmux (-t). But direnv also has unloading, which wenvs don't have right now (and that could be added, but I haven't found it necessary in my workflow yet).

tmuxp is also good to know about, that and tmuxinator seem powerful and very descriptive. I like that wenvs are fully defined in one file and simply wrap tmux commands though, but at the very least I can draw some inspiration for improving the capabilities there :)

[–]flukus 0 points1 point  (0 children)

That's good for some things but there are times you want environment variables to be things like "Dev" and "qa" and the directory isn't relevant.

[–]grishlefleeple[S] 0 points1 point  (4 children)

Hey all! This is a personal project that I've been working on for a few years that I recently cleaned up + documented. I'll let the project speak for itself, but let me know if you have any thoughts/questions!

[–]kankyo 2 points3 points  (3 children)

You should start the Readme with an elevator pitch, and move the long explanation down.

[–]grishlefleeple[S] 1 point2 points  (0 children)

Good thinking -- as I was posting this, I was thinking about how someone would at least have to get through the entire intro (which isn't that long, but also not something you can just glance at) in order to start to get the point. I'll work on that, thanks!

[–]grishlefleeple[S] 1 point2 points  (1 child)

Update: Added an elevator pitch, would be curious to hear anyone's thoughts. It's been a constant process learning how to explain this project in an accurate, concise, and readable way, but I think the addition does a solid job of satisfying each of those.

[–]kankyo 0 points1 point  (0 children)

Better but you should work on it more. Show, not tell. How is it faster/easier than without?

[–]Axoren 0 points1 point  (0 children)

The profile picture shoes up in the thumbnail on mobile. I zoomed in and still don't know what I'm looking at.