Last active
November 28, 2020 04:02
-
-
Save khirotaka/0266c50784f6fa9a9660dc5a12a380b9 to your computer and use it in GitHub Desktop.
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
fpath+=~/.zfunc | |
autoload -U compinit | |
compinit | |
alias ls="ls -pG" | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
# prompt | |
PROMPT="%F{2}%n@%m:%f%F{4}%~%f$ " | |
# Anaconda | |
export PATH="$PATH:/Users/Kawashima_Hirotaka/anaconda3/bin" | |
# Histroy | |
export HISTFILE=${HOME}/.zsh_history | |
export HISTSIZE=1000 | |
export SAVEHIST=10000 | |
setopt no_beep | |
setopt hist_ignore_all_dups # 重複するコマンド行は古い方を削除 | |
setopt hist_ignore_dups # 直前と同じコマンドラインはヒストリに追加しない | |
setopt share_history # コマンド履歴ファイルを共有する | |
setopt append_history # 履歴を追加 (毎回 .zsh_history を作るのではなく) | |
setopt inc_append_history # 履歴をインクリメンタルに追加 | |
setopt hist_no_store # historyコマンドは履歴に登録しない | |
setopt hist_reduce_blanks # 余分な空白は詰めて記録 | |
# Python alias | |
alias python="/usr/bin/env python3" | |
alias pip="/usr/bin/env pip3" | |
# GCP CLI | |
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" | |
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" | |
export PATH="/usr/local/opt/python@3.7/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment