shell-pool / shpool

Think tmux, then aim... lower
Apache License 2.0
1.03k stars 13 forks source link

shpool session creates with pwd as home directory not on curent path #47

Open rinkugoel opened 1 week ago

rinkugoel commented 1 week ago

What happened When i create the new session it takes me to home path ~/

What I expected to happen I should remain at the same directory path I was preset.

To Reproduce Steps to reproduce the behavior:

  1. go to some path in your system other then home directory
  2. create session using shpool
  3. you will be on home directory in the shpool. That was not the case with tmux and i liked that much

Version info Run shpool version and paste the output here

Logs Run journalctl --user -u shpool to pull logs related to shpool. You will likely want to use a pastebin to post the logs, and you may need to trim the output with tail.

ethanpailes commented 1 week ago

This should be pretty simple to address. We can add a config option to allow people to switch between the different behavior.

I'm not sure if we should break compatibility to change this though. To get a feel for what people want, give this comment a ❌ react if you want to see compatibility broken to make this the new default and a 🛑 react if you want to see the current behavior stay the same with just an option to choose different behavior if you want.

ethanpailes commented 2 days ago

If we retain the current behavior by default, I think a good flag name to switch the behavior would be -h/--here. We can also add a config option to make it the default.