Brew Install List === ###### tags: `brew install` `pipenv` ``` zsh的超屌字體: brew cask install homebrew/cask-fonts/font-firacode-nerd-font echo layout_pipenv >> .envrc 寫入字到.envrc history | grep dlib 搜尋歷史紀錄中特定字眼 .zshrc 把zsh剛開始要執行的腳本寫在這 chsh -s /usr/local/bin/zsh 切換成zshell 記得到preference去手動改字體讓iterm2可以用 ``` :closed_book: App List -- - **htop**: termial觀察機器況狀(CPU、RAM) - **pipenv**: python環境控制 - **yapf**: 美化python格式到標準化,-i自動改 - **flake8**: 進階debug,包含格式 - **zsh**: 超屌shell - **antigen**: zsh的超屌外掛 - **direnv**: 一進入路徑就載入環境變數 - ****: - ****: - **cmake** :mag: SOP --- - brew search [**key word of app**] - brew install [**app name**] - brew cask install [**app name**] # for GUI ``` Pipfile很重要,--dev是負面表列不裝的東西,除非install時下--dev才裝 新裝的package在venv/lib/python3.7/site-packages/ 用哪個python的 pipenv --three 用哪個python的 pipenv --two pipenv shell 等於conda的source activate ``` :closed_book: Package List -- - ****: - ****: - ****: - ****: - ****: - ****: - ****: - ****: :mag: SOP --- - pipenv install [**key word of package**] ## ??? ``` set | grep PIPENV_VENV_IN_PROJECT htop怎麽設定 .zshrc在哪? ``` --- ## zsh raw material ``` shell> brew install zsh shell> brew install antigen shell> brew cask install font-dejavusansmono-nerd-font shell> echo /usr/local/bin/zsh | sudo tee -a /etc/shells shell> chsh -s /usr/local/bin/zsh ``` `.zshrc` ```sh source /usr/local/share/antigen/antigen.zsh source ~/.iterm2_shell_integration.zsh POWERLEVEL9K_MODE='nerdfont-complete' # POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs pyenv) POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs virtualenv) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(public_ip ip) # Load the theme. antigen theme bhilburn/powerlevel9k powerlevel9k # Load the oh-my-zsh's library. antigen use oh-my-zsh antigen bundle iterm2 antigen bundle virtualenv antigen bundle copyfile antigen bundle copydir antigen bundle pip antigen bundle git antigen bundle colored-man-pages antigen bundle extract antigen bundle zsh-users/zsh-completions antigen bundle zsh-users/zsh-autosuggestions # Syntax highlighting bundle. antigen bundle zsh-users/zsh-syntax-highlighting antigen apply ``` --- ## pipenv的raw material pipenv === ##### Installing Pipenv ```shell shell> brew install pipenv shell> brew upgrade pipenv ``` ```shell shell> curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py shell> python get-pip.py --user shell> pip install --user pipenv shell> pip install --user --upgrade pipenv ``` ```shell export PATH="~/.local/bin:$PATH" export PIPENV_VENV_IN_PROJECT=1 ``` ```shell shell> pipenv --three shell> pipenv --two ``` ```shell shell> cd myproject shell> pipenv --python 3.6 shell> pipenv --python 3.7 shell> pipenv install requests shell> pipenv run python main.py shell> pipenv lock -r > requirements.txt ``` ```shell shell> pipenv shell shell> pipenv --where shell> pipenv --venv shell> pipenv --py shell> pipenv graph shell> pipenv uninstall --all shell> pipenv check ``` ```shell shell> cd $(pipenv --venv) ``` ```shell shell> pipenv --rm ``` ```shell shell> export PIPENV_VENV_IN_PROJECT=1 ``` `Pipfile` `requirements.txt` ```shell shell> pipenv install yapf --dev shell> pipenv install flake8 --dev shell> pipenv install opencv-python ``` ```shell shell> pipenv install jupyter shell> pipenv install jupyter_contrib_nbextensions shell> pipenv install jupyter_nbextensions_configurator shell> pipenv install yapf shell> pipenv install isort shell> jupyter notebook ``` **📚 參考網站:** - https://github.com/pypa/pipenv - https://pipenv.readthedocs.io/en/latest/basics/ - https://docs.pipenv.org/ - https://docs.pipenv.org/install/ direnv === ```shell shell> brew install direnv ``` ```sh eval "$(direnv hook zsh)" ``` ```shell shell> echo layout_pipenv >> .envrc ``` `.envrc` ```sh layout_pipenv ``` ``` shell> direnv allow . shell> direnv help ``` `~/.config/direnv/allow` **📚 參考網站:** - https://github.com/direnv/direnv - https://direnv.net/
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up