Skip to content

Instantly share code, notes, and snippets.

@Nigtellios
Last active August 14, 2023 20:21
Show Gist options
  • Save Nigtellios/86d17434dd51d717bbfd0bc21f97d027 to your computer and use it in GitHub Desktop.
Save Nigtellios/86d17434dd51d717bbfd0bc21f97d027 to your computer and use it in GitHub Desktop.
Configuring Git Bash Aliases on Windows 11
  1. Install Git for windows (with Git Bash)
  2. Check option "Add profile for Windows Terminal" during installation
  3. After successfull installation create a file .bashrc in your C:\Users<USER>
  4. Populate the file with aliases as follows: alias <NAME>='<COMMAND>' You can also use a multiline aliases like:
<ALIAS>() {
   <COMMAND_1>
   <COMMAND_2>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment