joshmedeski / sesh

Smart session manager for the terminal
MIT License
409 stars 16 forks source link

sesh 1.0.1 errors if a config file doesn't exist #92

Closed markfeinstein closed 3 months ago

markfeinstein commented 3 months ago

What happened?

When I run any sesh command after upgrading to 1.0.1, I expected to not see any errors but I see errors about a missing config file in the sesh output and newly opened tmux sessions! If not config file is present sesh should silently use defaults or create a new config file with default values.

Version

sesh version 1.0.1

Relevant log output

Error parsing config file: parseConfigFromFile - error reading config file (/home/path/.config/sesh/sesh.toml): open /home/path/.config/sesh/sesh.toml: no such file or directory Using default config insteadError parsing config file: parseConfigFromFile - error reading config file (/home/path/.config/sesh/sesh.toml): open /home/path/.config/sesh/sesh.toml: no such file or directory Using default config instead 'sesh connect "$(

Reviewed

joshmedeski commented 3 months ago

That’s fair, it should be able to work without the configuration file

joshmedeski commented 3 months ago

@markfeinstein it silently continues if the configuration file isn't found.