Skip to content

Force specific shell with thefuck --alias #1536

@svenjacobs

Description

@svenjacobs

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions