Fish style abbreviations
See original GitHub issueDescription of the new feature/enhancement
Powershell doesn’t allow creating an alias called gco
that performs git checkout
. The fish shell offers a slightly different feature called abbreviations. When you define an abbreviation named gco
, writing gco
will be replaced by git checkout
inside the command prompt whenever you hit enter or space. I think such feature will be a great addition to Powershell
Proposed technical implementation details (optional)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Fish-style abbreviations in Zsh
In fish, I can also define an abbreviation like this: abbr -a -g gst git status. It works mostly the same way as...
Read more >Fish abbreviations in zsh — Linux - YouTube
Martin Frost's abbreviation implementation: https://dev.to/frost/ fish - style - abbreviations -in-zsh-40aa My linux videos: ...
Read more >Commands
GNU style long options may be abbreviated so long as the abbreviation is unique (' --h ') is equivalent to ' --help '...
Read more >Commands
GNU style long options may be abbreviated so long as the abbreviation is unique (' --h ') is equivalent to ' --help '...
Read more >gazorby/fish-abbreviation-tips: 💡 Help you remembering ...
fish -abbreviation-tips Generic badge · asciicast. It helps you remember abbreviations and aliases by displaying tips when you can use them.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@r-darwish This should be an enhancement to PowerShell engine, instead of in PSReadLine. You are welcome to join the discussion in PowerShell/PowerShell#12962
@lzybkr Sorry for missing your comment. I agree that having this support in PSReadLine may be better as that would enforce the
abbreviation
to be an interactive feature only, which is not supported in script execution. I have captured your comment in the corresponding PS issue.