Skip to content

Instantly share code, notes, and snippets.

View Kidde82's full-sized avatar

Christian Persson Kidde82

  • Stockholm, Sweden
View GitHub Profile
@Kidde82
Kidde82 / pre-commit
Created April 11, 2018 11:35
Pre-Commit Hook
#!/bin/sh
TEMPDIR="tmp"
RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`
rm -rf $TEMPDIR
mkdir -p $TEMPDIR
@Kidde82
Kidde82 / webstorm-delete.bat
Created March 18, 2016 08:14
Remove context menu to Windows 7 to open file/folder in WebStorm
REM This is just rewritten from https://gist.github.com/amnuts/162f6b03c5f94692fd6c to fit Webstorm
REM Related gist: https://gist.github.com/Kidde82/e12496a53517daee87ce
@echo off
echo Removing file entries
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm"
echo Removing folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in WebStorm"
@Kidde82
Kidde82 / webstorm.bat
Last active March 18, 2016 08:44
Add context menu to Windows 7 to open file/folder in WebStorm
REM This is just rewritten from https://gist.github.com/amnuts/162f6b03c5f94692fd6c to fit Webstorm
@echo off
REM Make sure to set WebStormPath to match the location of your Webstorm copy.
SET WebStormPath=C:\Program Files (x86)\JetBrains\WebStorm 2016.1\bin\WebStorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_SZ /v "" /d "Open in WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f