question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fish style abbreviations

See original GitHub issue

Description 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
daxian-dbwcommented, Oct 5, 2020

@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

0reactions
daxian-dbwcommented, Nov 12, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found