Skip to content

Instantly share code, notes, and snippets.

Avatar

Radu Serbanescu raduserbanescu

  • Buzau, Romania
View GitHub Profile
@raduserbanescu
raduserbanescu / run-npm-scripts-through-bash-instead-of-cmd.md
Created Jun 17, 2017
On Windows, run npm scripts through Bash instead of cmd.exe
View run-npm-scripts-through-bash-instead-of-cmd.md

Run npm scripts through Bash instead of cmd.exe

On Windows, npm scripts run under cmd.exe.

If you have Git for Windows installed, you can make npm scripts run under Bash. This allows you to somewhat mimic a Linux or macOS environment.

Check to see where npm is installed:

npm ls -g --depth=0
@raduserbanescu
raduserbanescu / remove-mingw-text-from-git-bash-prompt.md
Last active Aug 11, 2021
Remove "MINGW" text from Git Bash prompt and window title
View remove-mingw-text-from-git-bash-prompt.md

Remove "MINGW" text from Git Bash prompt and window title

Quickly remove the text without having to create a custom prompt.

Edit the file: C:\Program Files\Git\etc\profile.d\git-prompt.sh

 else
        TITLEPREFIX=$MSYSTEM
 fi
@raduserbanescu
raduserbanescu / useful-git-commands.md
Last active Jan 10, 2018
A collection of useful git commands (that I can never remember) and some tips & tricks
View useful-git-commands.md

Useful git commands

log

Limit the number of commits to output

git log -3