A small bash alias trick

Just because I like notepad++ a lot I added an alias to run it from git bash quicker. Sounds like a fun thing to have.

1. In your home directory create a file .bashrc and add a new alias like this:
alias ++='/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe'
2. According to this post .bashrc might actually not be read directly so when you restart your terminal, make sure that you have .bash_profile file available with the following content:
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
3. That's it, with new git bash terminal windows  you will now be able to run ++ to start your favorite text editor.

Comments