joshmedeski / sesh

Smart session manager for the terminal
MIT License
699 stars 41 forks source link

docs(readme): reset zsh prompt after calling sesh-sessions script #189

Closed alexandre-abrioux closed 1 month ago

alexandre-abrioux commented 1 month ago

When in a Zsh shell and pressing Alt-s, the session list opens with FZF, thanks to the script provided in the README.

Pressing Esc or Ctrl-C goes back to the shell, but we need to press Enter again before we're given another Zsh prompt. The same issue appears when entering a tmux session: after detaching from tmux, we need to press Enter again before we're given another Zsh prompt.

Calling the function by typing in sesh-session at the Zsh prompt and pressing Enter, and then closing FZF already does what we want - we're given another Zsh prompt. This PR aims to replicate the same behavior through the Alt-s shortcut.

joshmedeski commented 1 month ago

Thanks @alexandre-abrioux