Mintty: alias not work

Created on 26 Feb 2020  ยท  3Comments  ยท  Source: mintty/mintty

steps to reproduce

  1. installed msys2 in D:\msys64
  2. update D:\msys64\home\MyUserName\.bashrc and add
gs='git status -s'
gaa='git add .'
gcm='git commit -m'
gpom='git push origin master'
  1. Open terminal in a git directory & input gs

Problem

-bash: gs: command not found

Expect

gs got translated to git status -s

How could I fix it?

invalid question

Most helpful comment

You could also type $gs at the prompt to execute the command defined in the variable gs.

All 3 comments

It should be alias gs='git status -s'. This is not a mintty question. Please learn about using shell (bash) before.

You could also type $gs at the prompt to execute the command defined in the variable gs.

Sorry, It's my fault :(
thank you very much for helping newbie like me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DanielGGordon picture DanielGGordon  ยท  12Comments

Trismegistos84 picture Trismegistos84  ยท  13Comments

AyushAgrawalProgrammer picture AyushAgrawalProgrammer  ยท  8Comments

fengyichui picture fengyichui  ยท  4Comments

JohanVandeplas picture JohanVandeplas  ยท  15Comments