zsh 每次打開Terminal都須要source bash_profile問題

zsh 每次打開Terminal都須要source bash_profile問題php

 

 

zsh加載的是 ~/.zshrc文件,而.zshrc’ 文件中並無定義任務環境變量。 
解決辦法,在~/.zshrc文件最後,增長一行:
git

source .bash_profilebash

 

 

 

aliasmarkdown

alias gs="git status"
alias gc="git commit -m "
alias gaa="git add ."
alias gp="git push"
alias gl="git log --graph"spa

alias artisan="php artisan"
alias markdown="php laravist.php markdown"
alias migrate="php artisan migrate"
alias migration="php artisan make:migration"
alias controller="php artisan make:controller"
alias model="php artisan make:model"
alias console="php artisan make:console"
alias tinker="php artisan tinker"
alias routelist="php artisan route:list"
alias cacheclear="php artisan cache:clear"
alias cat=ccat
alias h=history
source /Users/hoge/.bash_profile
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zshit

相關文章
相關標籤/搜索