Mac – My .bash_profile
     发布在:System      浏览:50      评论:0 条评论
# System PATH
SYSTEM="/usr/local/bin:/usr/local/sbin:~/bin"
PATH="${PATH}:${SYSTEM}"

## Drupal Dev Desktop
DDD="/Applications/DevDesktop/tools"
PATH="${PATH}:${DDD}"

## PHP
PHP71="/usr/local/opt/php@7.1"
PHP72="/usr/local/opt/php@7.2"
PATH="${PATH}:${PHP71}/bin:${PHP71}/sbin"
PATH="${PATH}:${PHP72}/bin:${PHP72}/sbin"

## Composer
COMPOSER="/Users/kang/.composer/vendor"
PATH="${PATH}:${COMPOSER}/bin"

## Setting PATH for Python 3.7
## The original version is saved in .bash_profile.pysave
PYTHON37="/Library/Frameworks/Python.framework/Versions/3.7"
USER_PYTHON37="/Users/kang/Library/Python/3.7"
PATH="${PATH}:${PYTHON37}/bin:${USER_PYTHON37}/bin"

# Export
export PATH

# alias
alias composer="php -d memory_limit=-1 /usr/local/bin/composer.phar"
alias python="${PYTHON37}/bin/python3.7"
alias php="${PHP72}/bin/php"
alias vscode="open -a /Applications/Visual\ Studio\ Code.app"
alias sublime="open -a /Applications/Sublime\ Text.app"
alias mdopen="open -a /Applications/Typora.app"

# Locale Language
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
    Responses