Tab complete global alias names not at the beginning of a linezsh alias expansionHow to have autocomplete...

History: Per Leviticus 19:27 would the apostles have had corner locks ala Hassidim today?

Add elements inside Array conditionally in JavaScript

Why is the episode called "The Last of the Starks"?

Is there a need for better software for writers?

How to animate petals opening

Light Switch Neutrals: Bundle all together?

Magical Modulo Squares

Opposite party turned away from voting when ballot is all opposing party

Did any early RISC OS precursor run on the BBC Micro?

What's the difference between "ricochet" and "bounce"?

What are these pads?

The unknown and unexplained in science fiction

Why doesn't increasing the temperature of something like wood or paper set them on fire?

How to explain intravenous drug abuse to a 6-year-old?

Why doesn't a particle exert force on itself?

Where do 5 or more U.S. counties meet in a single point?

I'm attempting to understand my 401k match and how much I need to contribute to maximize the match

Examples where existence is harder than evaluation

How can it be that ssh somename works, while nslookup somename does not?

How to adjust Venn Diagram for A^c and A - B

How to append code verbatim to .bashrc?

Is the tensor product (of vector spaces) commutative?

Is this strange Morse signal type common?

My parents are Afghan



Tab complete global alias names not at the beginning of a line


zsh alias expansionHow to have autocomplete ignore a specific completionTab completion doesn't work for arguments when command is an aliasHow to make a custom bash tab completion?Tab-completion within for loops not workingzsh completion - show more options than just the aliasHow can I expand all variables at the command line in Zsh?Identify alias for the command typedBash tab completion for aliasesWhat's the intended use case for COMPLETE_ALIASES in zsh?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have a bunch of aliases like this



alias -g foo=cmd1
alias -g faz=cmd2
alias -g fam=cmd3


At the shell (I'm using zsh) I want to be able to type



echo fa<TAB>


and be prompted for faz or fam



complete_aliases option doesn't seem right (and didn't work) and compdef is for completion for cmd* not to complete the alias name itself.



If I use the aliases at the beginning of a line they do offer tab completion. It's only when it's used somewhere else in the line.



Functions like oh-my-zsh's globalias works for expanding the alias after I type the full name and push space but I'm looking for something that will expand the alias if I don't remember the full name of it.










share|improve this question































    0















    I have a bunch of aliases like this



    alias -g foo=cmd1
    alias -g faz=cmd2
    alias -g fam=cmd3


    At the shell (I'm using zsh) I want to be able to type



    echo fa<TAB>


    and be prompted for faz or fam



    complete_aliases option doesn't seem right (and didn't work) and compdef is for completion for cmd* not to complete the alias name itself.



    If I use the aliases at the beginning of a line they do offer tab completion. It's only when it's used somewhere else in the line.



    Functions like oh-my-zsh's globalias works for expanding the alias after I type the full name and push space but I'm looking for something that will expand the alias if I don't remember the full name of it.










    share|improve this question



























      0












      0








      0








      I have a bunch of aliases like this



      alias -g foo=cmd1
      alias -g faz=cmd2
      alias -g fam=cmd3


      At the shell (I'm using zsh) I want to be able to type



      echo fa<TAB>


      and be prompted for faz or fam



      complete_aliases option doesn't seem right (and didn't work) and compdef is for completion for cmd* not to complete the alias name itself.



      If I use the aliases at the beginning of a line they do offer tab completion. It's only when it's used somewhere else in the line.



      Functions like oh-my-zsh's globalias works for expanding the alias after I type the full name and push space but I'm looking for something that will expand the alias if I don't remember the full name of it.










      share|improve this question
















      I have a bunch of aliases like this



      alias -g foo=cmd1
      alias -g faz=cmd2
      alias -g fam=cmd3


      At the shell (I'm using zsh) I want to be able to type



      echo fa<TAB>


      and be prompted for faz or fam



      complete_aliases option doesn't seem right (and didn't work) and compdef is for completion for cmd* not to complete the alias name itself.



      If I use the aliases at the beginning of a line they do offer tab completion. It's only when it's used somewhere else in the line.



      Functions like oh-my-zsh's globalias works for expanding the alias after I type the full name and push space but I'm looking for something that will expand the alias if I don't remember the full name of it.







      zsh alias autocomplete






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago









      Jeff Schaller

      45.5k1165148




      45.5k1165148










      asked 3 hours ago









      RothgarRothgar

      2,47331317




      2,47331317






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f517674%2ftab-complete-global-alias-names-not-at-the-beginning-of-a-line%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f517674%2ftab-complete-global-alias-names-not-at-the-beginning-of-a-line%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...