zshrc ダイエット
zsh の設定とかに時間を食いつぶされたくなくて zshrc をスリムにしてみた
# # zplug # export ZPLUG_HOME=~/.zplug source $ZPLUG_HOME/init.zsh # zplug self manage zplug 'zplug/zplug', hook-build:'zplug --self-manage' # history zplug "zsh-users/zsh-history-substring-search" # autocomplete zplug "zsh-users/zsh-autosuggestions" zplug "zsh-users/zsh-completions" # syntax highlighting zplug "chrissicool/zsh-256color" zplug "zsh-users/zsh-syntax-highlighting", defer:2 # theme zplug "mafredri/zsh-async", from:github zplug "sindresorhus/pure", use:pure.zsh, from:github, as:theme # install plugins if ! zplug check --verbose; then printf "Install? [y/N]: " if read -q; then echo; zplug install fi fi # load plugins, and add commands to $PATH zplug load --verbose # # zstyle # zstyle ':completion:*' menu select # # history settings # HISTFILE=$HOME/.zsh_history HISTSIZE=1000 SAVEHIST=10000 # # aliases # alias ls="ls -G" alias la="ls -a" alias ll="ls -lh" # # rbenv # if [ -e "$HOME/.rbenv" ]; then eval "$(rbenv init - zsh)" fi
zplug は brew ではなく curl や git clone で ~/.zplug へインストールする
マルチユーザで Mac 使うと zplug の log ファイルのアクセス権でめんどうなことになったから