Skip to content

Instantly share code, notes, and snippets.

@Jung0
Last active March 6, 2019 07:33
Show Gist options
  • Save Jung0/a14a90305e28b0201baeb786d397f4bf to your computer and use it in GitHub Desktop.
Save Jung0/a14a90305e28b0201baeb786d397f4bf to your computer and use it in GitHub Desktop.
zplugの導入 oh-my-zshのような設定にするまで。 ref: https://qiita.com/Jung0/items/300f8b83520e56766f22
$ cp .zshrc .zshrc.before
$ uninstall_oh_my_zsh
$ curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh
# zplug
source ~/.zplug/init.zsh
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
# theme (https://github.com/sindresorhus/pure#zplug) 好みのスキーマをいれてくだされ。
zplug "mafredri/zsh-async"
zplug "sindresorhus/pure"
# 構文のハイライト(https://github.com/zsh-users/zsh-syntax-highlighting)
zplug "zsh-users/zsh-syntax-highlighting"
# history関係
zplug "zsh-users/zsh-history-substring-search"
# タイプ補完
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "chrissicool/zsh-256color"
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load
# zplug
source ~/.zplug/init.zsh
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
# theme (https://github.com/sindresorhus/pure#zplug) 好みのスキーマをいれてくだされ。
zplug "mafredri/zsh-async"
zplug "sindresorhus/pure"
# 構文のハイライト(https://github.com/zsh-users/zsh-syntax-highlighting)
zplug "zsh-users/zsh-syntax-highlighting"
# history関係
zplug "zsh-users/zsh-history-substring-search"
# タイプ補完
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "chrissicool/zsh-256color"
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load
HISTFILE=$HOME/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
alias ls="ls -G"
alias la="ls -a"
alias ll="ls -lh"
HISTFILE=$HOME/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
alias ls="ls -G"
alias la="ls -a"
alias ll="ls -lh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment