Last active
October 2, 2024 06:39
-
-
Save kakakikikeke/dfefba9f5f5a6ec7e561ff945918d591 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
# 各種エイリアス | |
alias ls="ls -G" | |
alias history="history -E 1" | |
alias bundleinit="bundle init --gemspec=~/.gemspec_template" | |
alias gits="git status" | |
# 履歴サイズ | |
export HISTSIZE=100000 | |
# Go | |
export GOPATH="/Users/kakakikikeke/go" | |
export PATH="$GOPATH/bin:$PATH" | |
# Homebrew でインストールした各種バイナリをmacOSデフォルトのバイナリより優先的に使用する | |
# バージョンの記載の部分は brew install でインストールした最新バージョンに変更すること | |
# for apple silicon | |
export PATH="/opt/homebrew/opt/ruby/bin:$PATH" | |
export PATH="/opt/homebrew/bin:$PATH" | |
export PATH="/opt/homebrew/lib/ruby/gems/3.2.0/bin:$PATH" | |
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH" | |
export PATH="/opt/homebrew/opt/curl/bin:$PATH" | |
# for intel mac | |
# export PATH="/usr/local/opt/python/libexec/bin:$PATH" | |
# export PATH="/usr/local/opt/ruby/bin:$PATH" | |
# export PATH="/usr/local/lib/ruby/gems/3.2.0/bin:$PATH" | |
# export PATH="/usr/local/sbin:$PATH" | |
# export PATH="/usr/local/opt/openssl/bin:$PATH" | |
# export PATH="/usr/local/opt/curl/bin:$PATH" | |
# poetry | |
export PATH="$HOME/.local/bin:$PATH" | |
export PATH="$HOME/.poetry/bin:$PATH" | |
# プロンプト | |
export PROMPT="%F{cyan}%n@%m%f %F{blue}%1~%f %# " | |
# 補完 | |
autoload -Uz compinit && compinit | |
zstyle ':completion:*' completer _oldlist _complete _match _history _ignored _approximate _prefix | |
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' | |
if type brew &>/dev/null; then | |
FPATH=$(brew --prefix)/share/zsh-completions:$(brew --prefix)/share/zsh/site-functions:$FPATH | |
autoload -Uz compinit | |
compinit | |
fi | |
## google-cloud-sdk 補完 | |
source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc" | |
source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc" | |
# rbenv | |
eval "$(rbenv init -)" | |
# pyenv | |
eval "$(pyenv init -)" | |
# nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm | |
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion | |
# ssh | |
if [ -z "$SSH_AUTH_SOCK" ] ; then | |
eval `ssh-agent -s` | |
ssh-add | |
fi | |
# PATH の冗長を削除 | |
typeset -U PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment