Hello, sesh has officially hit v1.0! 🎉
Thank you to all the contributors and community members that have helped test sesh for the past few months.
New Features
Import Additional Configurations
You can now import additional toml
files into the main file if you want to break up your configuration.
import = ["~/additional-config.toml"]
Default Session Configuration
You can now configure all session with a default command or script. It will execute that command after creating the session.
[default_session]
name = "dotfiles"
path = "~/code/dotfiles"
startup_command = "nvim -c ":Telescope find_files"
You can also write a script and execute it using the starup_script
. Note: You can only choose the startup script or startup command, they can't be used at the same time.
[default_session]
name = "dotfiles"
path = "~/code/dotfiles"
startup_script = "~/code/dotfiles/startup.sh"
Listing Configurations
Session configurations will now load by default if no flags are provided (the return after tmux sessions and before zoxide results). If you want to explicitly list them, you can use the -c
flag.
sesh list -c
Breaking Changes
Dropping [[startup_scripts]]
in place of [[session]]
-[[startup_scripts]]
-session_path = "~/c/joshmedeski.com"
-script_path = "~/. config/sesh/scripts/node_dev"
+[[session]]
+name = "joshmedeski.com"
+path = "~/c/joshmedeski.com"
+startup_script = "~/. config/sesh/scripts/node_dev"
Dropping default_startup_script
in place [default_session]
which supports startup_script
or startup_command
options
-default_startup_script = "~/.config/sesh/scripts/open_files"
+[default_session]
+startup_script = "~/.config/sesh/scripts/open_files"