-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Description
I use an immutable Linux distro and installed thefuck via Distrobox in a container. Inside the container thefuck --alias outputs the correct script for the shell, which is Fish in my case. However on the host sytem the command produces
alias fuck='eval "$(TF_ALIAS=fuck PYTHONIOENCODING=utf-8 thefuck "$(fc -ln -1)")"'
I think the reason is that when exporting an executable via Distrobox, Distrobox creates a wrapper script at $HOME/.local/bin. The script has the shebang #!/bin/sh so thefuck assumes sh / bash. I already tried SHELL=/usr/bin/fish thefuck --alias which doesn't work either.
It would be nice if we could force a specific shell, for example with thefuck --alias --shell fish.
Metadata
Metadata
Assignees
Labels
No labels