Skip to content

Instantly share code, notes, and snippets.

View raduserbanescu's full-sized avatar

Radu Serbanescu raduserbanescu

  • Buzau, Romania
View GitHub Profile
@raduserbanescu
raduserbanescu / remove-mingw-text-from-git-bash-prompt.md
Last active December 22, 2023 19:38
Remove "MINGW" text from Git Bash prompt and window title

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 / run-npm-scripts-through-bash-instead-of-cmd.md
Created June 17, 2017 20:01
On Windows, run npm scripts through Bash instead of cmd.exe

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 / useful-git-commands.md
Last active January 10, 2018 15:44
A collection of useful git commands (that I can never remember) and some tips & tricks

Useful git commands

log

Limit the number of commits to output

git log -3