- Use Iterm2 instead of the native OS X terminal app
- Install OhMyZsh https://github.com/robbyrussell/oh-my-zsh
- I also use the solarized dark background http://ethanschoonover.com/solarized
- Install the theme https://github.com/bhilburn/powerlevel9k
- And the fonts: https://github.com/bhilburn/powerlevel9k/wiki/Install-Instructions#step-2-install-a-powerline-font
- To autocomplete previous commands, i like to use this ohmyzsh plugin https://github.com/zsh-users/zsh-autosuggestions
- My .zshrc config file: https://gist.github.com/supercid/b176077b10ad7d34c54522729e82bb0e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/Sites | |
composer create-project shopware/composer-project --no-interaction --stability=dev shopware | |
cd shopware | |
MYSQL_ENV_MYSQL_HOST='mysql' | |
# Setup variables to populate the .env file | |
cp .env.example .env | |
sed -i -e 's*DB_DATABASE=composer*DB_DATABASE=shopware*g' .env | |
sed -i -e 's*DB_USERNAME=root*DB_USERNAME=homestead*g' .env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9002 remote_host=127.0.0.1 remote_connect_back=0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @noinspection PhpUndefinedMethodInspection */ | |
/** @noinspection PhpDeprecationInspection */ | |
PhpAssignmentInConditionInspection | |
PhpDeprecationInspection | |
PhpDocMissingReturnTagInspection | |
PhpDocSignatureInspection | |
PhpDynamicAsStaticMethodCallInspection | |
PhpIllegalArrayKeyTypeInspection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recently i've been struggling to ignore my local changes to a .env file that was already committed in a git repo. | |
# To locally ignore your changes to that particular file/folder and keep tracking in the remote, use this: | |
git update-index --skip-worktree <path-name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/shopware/shopware.git | |
cd shopware | |
chmod -R 755 var | |
chmod -R 755 web | |
chmod -R 755 files | |
chmod -R 755 media | |
chmod -R 755 engine/Shopware/Plugins/Community | |
cd build/ | |
ant configure | |
ant build-unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
source <(antibody init) | |
PATH="/Users/alcidemar/Library/Python/2.7/bin:${PATH}" | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/alcidemar/.oh-my-zsh | |
#export NVM_DIR="$HOME/.nvm" | |
#. "/usr/local/opt/nvm/nvm.sh" | |
# The shit above slows down the shell by 3 seconds! Load manually when needed | |
alias loadnvm=". /usr/local/opt/nvm/nvm.sh" |
I hereby claim:
- I am supercid on github.
- I am supercid (https://keybase.io/supercid) on keybase.
- I have a public key ASDfn2eux4enGBYnftuNim9XsHvKVPtOOrMp0hDbpzcCjwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This gist contains pre-commit hooks to prevent you from commiting bad code or to the wrong branch. | |
# There are four variants that I have built: | |
# - pre-commit: stops commits to "master" and "develop" branches. | |
# - pre-commit-2: also includes a core.whitespace check. | |
# - pre-commit-3: the core.whitespace check and an EOF-newline-check. | |
# - pre-commit-4: only the core.whitespace check. | |
# Set desired version like this before installing: | |
# FILE=pre-commit |