Wrapper that allows to open projects from commandline:
$ phpstorm ~/projects/awesome-project
Download this snippet and install into your $PATH
/composer.lock | |
/vendor/ |
#!/bin/sh | |
# A git pre-commit hook to run php-cs-fixer on all changed php files. | |
# | |
# Inspired from https://gist.github.com/jwage/b1614c96ea22ccaf68b7 | |
# | |
# Author: Elan Ruusamäe <glen@pld-linux.org> | |
# Date: 2017-05-03 | |
# URL: https://gist.github.com/glensc/cf03265205b67f3735b6fb19ccd4ab2a | |
set -e |
*~ | |
*.py[co] | |
/*.egg-info/ |
/vendor/ |
#!/usr/bin/env python3 | |
import sys | |
import json | |
import warnings | |
from datetime import datetime | |
def fixup_str(text): | |
return text.encode('latin1').decode('utf8') |
*~ | |
/php?? |
#!/bin/sh | |
# https://git-scm.com/docs/githooks | |
# | |
# This is hook that updates composer | |
# if branch change included change in composer.json | |
# | |
# additionally, if vendor dir is under (separate!) git repo, | |
# the result can be speed up by switching and keeping git branch up to date | |
# there as well. |