gh-copilot icon indicating copy to clipboard operation
gh-copilot copied to clipboard

Support Alias for Fish Shell

Open anasmohammed361 opened this issue 1 year ago • 7 comments

Support alias for fish shell

anasmohammed361 avatar Mar 22 '24 05:03 anasmohammed361

Please add this so Fish users can execute commands.

nickserv avatar Mar 22 '24 11:03 nickserv

@anasmohammed361 @nickmccurdy : thank you both for opening this issue! ❤ As I mention in #5 , I was waiting for this. 🤣

That said, I will admit I'm not a fish expert — there is an inside joke there — but in all seriousness I would greatly appreciate help from the community. In essence, we would want to recreate the aliases from gh copilot alias -- zsh, which some in our community might have previously built for the technical preview that could be adapted.

andyfeller avatar Mar 22 '24 12:03 andyfeller

I've made aliases for the Fish shell that can be installed as a plugin via Fisher: https://github.com/rcny/gh-copilot-cli-alias.fish.

fisher install rcny/gh-copilot-cli-alias.fish

rcny avatar Apr 26 '24 12:04 rcny

made a fix; https://github.com/DevAtDawn/gh-copilot-Fish-Alias-Support
if you add that to your fish config the alias feature will work. Currently creating an extension to simplify installation, although it might not be necessary if the fish shell version is added to the main repo

@anasmohammed361 @nickserv @andyfeller

DevAtDawn avatar Aug 02 '24 12:08 DevAtDawn

and heres the plugin for fish! https://github.com/DevAtDawn/gh-fish/

gh extension install devatdawn/gh-fish

DevAtDawn avatar Aug 10 '24 17:08 DevAtDawn

@DevAtDawn how does this differ from the one @rcny posted?

domkm avatar Aug 10 '24 18:08 domkm

@DevAtDawn how does this differ from the one @rcny posted?

code replicates zsh/bash alias functionality, its a gh extension/can be installed with gh extension install, also has the option to enable interactive target selection #58 , ill be adding more features in the future

DevAtDawn avatar Aug 16 '24 00:08 DevAtDawn