joshmedeski / sesh

Smart session manager for the terminal
MIT License
538 stars 30 forks source link

Clear default sessions startup command on a session basis #153

Open Catgroove opened 2 weeks ago

Catgroove commented 2 weeks ago

What would you like sesh to do?

Apologies if this is already possible.

When using a default session along with a startup command, I would like to be able to clear that on a session basis using something along the lines of startup_command = "".

Why?

For my default startup command, I typically want to always run nvim, but for some specific sessions, I would just like to be placed in the directory, for example when I'm opening up my folder of git repositories.

joshmedeski commented 2 weeks ago

I recommend setting it to something like ls. That's what I do in this situation.

Catgroove commented 1 week ago

That works. Feels a bit hacky but good enough for now.

joshmedeski commented 1 week ago

Do you have any suggestions?

We could detect if the startup command is an empty value then don't run the default command. Not sure if that's very intuitive

joshmedeski commented 1 week ago

What do you think of this

[[session]]
name = "fish config"
path = "~/c/dotfiles/.config/fish"
disable_startup_command = true

It should be trivial to implement, but I think adding some sort of simple command is easy enough.

Catgroove commented 2 days ago

What do you think of this

[[session]]
name = "fish config"
path = "~/c/dotfiles/.config/fish"
disable_startup_command = true

It should be trivial to implement, but I think adding some sort of simple command is easy enough.

Looks good! More intuitive than leaving it empty, for sure, even though that's what I tried initially.