No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Quasar => Q ?

    CLI
    2
    4
    412
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ben Hayat
      Ben Hayat last edited by

      Hi Team;

      When using Quasar CLI and we type in
      Quasar Dev
      Quasar Info
      Quasar Build
      etc.

      Can we also use the letter “Q” to shorten the “Quasar” command? i.e.
      Q Dev
      Q Info
      Q Build
      etc.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        I think that would be best in your own .bashrc or alias.sh as aliases for your console. You could do something like

        alias qv='quasar --version'
        alias qi='quasar info'
        qinit() {
         quasar init $1
        }
        

        I just added them to my console’s alias.sh (Windows 10 with Git Bash) and they work. 😄

        Scott

        Ben Hayat 1 Reply Last reply Reply Quote 1
        • Ben Hayat
          Ben Hayat @s.molinari last edited by

          @s-molinari
          Scott, I created a .bashrc file (using notepad) and added alias qd=‘quasar Dev’ and saved it in C:\ben user directory, however when I try to access it in VS Code terminal, it does not recognize the qd command.

          I’m not real familiar with these git stuff and unix commands (A .Net developer) 🙂

          can you please provide how to setup these aliases? Much appreciated!

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            Go to Settings in VSCode and type in console in the search. Somewhere below is Terminal>External:Windows Exec.

            You’ll need to change that path to where you installed git and more specifically bin/bash.exe. (Hopefully you have installed Git for Windows)

            Then you can go the Git\etc\profile.d folder and edit aliases.sh.

            Scott

            1 Reply Last reply Reply Quote 1
            • First post
              Last post