Created
April 13, 2014 08:18
-
-
Save bchatard/10574382 to your computer and use it in GitHub Desktop.
PhpStorm open project
This file contains hidden or 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
# add into /etc/profile | |
# PhpStorm | |
export PHPSTORM_PROJECT_BASE_PATH=$HOME'/Documents/PhpStorm/' | |
alias psop='phpstorm-open-project.sh' |
This file contains hidden or 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 | |
if [[ ! -z $1 ]] && [ -d $PHPSTORM_PROJECT_BASE_PATH$1 ]; then | |
pstorm $PHPSTORM_PROJECT_BASE_PATH$1 | |
fi |
This file contains hidden or 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
# located in /usr/local/etc/bash_completion.d | |
_phpstorm-project-completion() | |
{ | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
COMPREPLY=( $(compgen -W "$(ls $PHPSTORM_PROJECT_BASE_PATH)" -- $cur) ) | |
} | |
complete -F _phpstorm-project-completion psop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment