Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.8k stars 237 forks source link

br can't be launched in a kitty startup session #797

Closed Schweber closed 8 months ago

Schweber commented 1 year ago

I would like to define a kitty startup session that launches br on startup. However, if i add launch br then kitty fails with

Failed to launch child: br
With error: No such file or directory
Press Enter or Esc to exit

If i add launch broot it works but then i can't use :cd etc. After the window is open i can run br and it works as usual but that's not what i'm trying to achieve.

Does someone know a solution to this?

Canop commented 1 year ago

At first sight, kitty sessions don't seem to see the functions defined in your bash session and the launch command seems to be restricted to launching executables. I have no idea how this works. Maybe ask on the kitty project ?

Schweber commented 1 year ago

Will do, thank you for the quick response and your awesome programs!

Schweber commented 1 year ago

The initial solution in my case is launch --hold fish -ilc br. Without -il it also starts but the maintainer of kitty suggested to add it.

However, changing the directory with broot still doesn't work. As soon as broot is exited, the shell also exits and is restarted with the original cwd. I don't understand the reason.

Maybe someone knows how to make it work.

Schweber commented 8 months ago

I close this as it's probably related to kitty.