How to add an alias permanently for the Git Bash (Windows)

  alias, bash, windows
  1. To add an alias permanently, you’d need to edit the file /C/Program Files/Git/etc/profile.d/ .

  2. Run your text editor as an administrator and open that file.

  3. Add your alias and save the file.

  4. Open the Git Bash. Execute 'alias', and you’re done. Have fun.

    $ alias

    alias cll='clear; ls -lah'

    alias countFiles='ls -1 | wc -l'

    alias ll='ls -lah'

    alias ls='ls -F --color=auto --show-control-chars'

Full content 👉

Source: Windows Questions