pkgxdev / pkgx

the last thing you’ll install
https://pkgx.sh
Apache License 2.0
8.81k stars 1.36k forks source link

When will the "pkg integrate" works for fish shell #965

Closed Shobhit0109 closed 5 months ago

Shobhit0109 commented 5 months ago

Please add support for fish shell

dosubot[bot] commented 5 months ago

🤖

Hey @Shobhit0109, great to see you back! Hope you're doing fantastically.

I understand your request for fish shell support in pkgx. Currently, the pkgx v1.1.6 supports integrations with Bash and Zsh shells, but not with fish shell. This is due to the fish shell integration code being commented out in the source code.

However, you can manually integrate pkgx with the fish shell by adding the following line to your fish shell configuration file (config.fish):

pkgx --hook | source

This line generates the necessary shell code for pkgx and runs it in the current shell session. The fish shell configuration file is usually located at ~/.config/fish/config.fish. If this file doesn't exist, you can create it.

You can add the integration line to your fish shell configuration file from the command line with:

echo 'pkgx --hook | source' >> ~/.config/fish/config.fish

After adding this line, you need to restart your terminal or run source ~/.config/fish/config.fish for the changes to take effect.

Please note that this is a manual workaround and not an official support for fish shell in pkgx. For official support, changes would need to be made in the pkgx source code to include fish shell in the list of shell integration candidates.

For more details, you can refer to the source code of the shells() function in the src/modes/integrate.ts file.

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

Best regards, Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

Shobhit0109 commented 5 months ago

When i tried this i got this error image

then i also try the suggested but it isn't working on fish image

mxcl commented 5 months ago

Dupes #845