switch to zplug

This commit is contained in:
Thomas Ruoff
2017-01-17 22:39:07 +01:00
parent fd5ea003bc
commit 2598a7df97
3 changed files with 27 additions and 22 deletions

3
.gitmodules vendored
View File

@@ -1,3 +1,6 @@
[submodule "base16-shell"] [submodule "base16-shell"]
path = base16-shell path = base16-shell
url = git@github.com:chriskempson/base16-shell.git url = git@github.com:chriskempson/base16-shell.git
[submodule "zplug"]
path = zplug
url = https://github.com/zplug/zplug

1
zplug Submodule

Submodule zplug added at 063d26f800

45
zshrc
View File

@@ -1,31 +1,25 @@
# load zgen source ~/.dotfiles/zplug/init.zsh
source "${HOME}/.dotfiles/zgen/zgen.zsh"
if ! zgen saved; then
echo "Creating a zgen save"
zgen oh-my-zsh lib/spectrum.zsh zplug "lib/spectrum.zsh", from:oh-my-zsh
zgen oh-my-zsh lib/directories.zsh zplug "lib/directories.zsh", from:oh-my-zsh
zgen oh-my-zsh lib/grep.zsh zplug "lib/grep.zsh", from:oh-my-zsh
zgen oh-my-zsh lib/history.zsh zplug "lib/history.zsh", from:oh-my-zsh
zgen oh-my-zsh lib/misc.zsh zplug "lib/misc.zsh", from:oh-my-zsh
zgen oh-my-zsh plugins/common-aliases zplug "plugins/common-aliases", from:oh-my-zsh
zgen oh-my-zsh plugins/frontend-search zplug "plugins/frontend-search", from:oh-my-zsh
zgen load zsh-users/zsh-completions src zplug "zsh-users/zsh-completions", use:"src/*.zsh"
zgen load zsh-users/zsh-syntax-highlighting zplug "zsh-users/zsh-syntax-highlighting", defer:2
zgen load peterhurford/git-it-on.zsh zplug "peterhurford/git-it-on.zsh"
zgen load gerges/oh-my-zsh-jira-plus zplug "gerges/oh-my-zsh-jira-plus"
zgen load mafredri/zsh-async zplug "mafredri/zsh-async"
zgen load sindresorhus/pure zplug "sindresorhus/pure"
zgen save
fi
######################## ########################
# Other settings # Other settings
######################## ########################
setopt auto_cd setopt auto_cd
setopt multios setopt multios
@@ -78,7 +72,14 @@ bindkey ' ' magic-space
# Base16 Shell # Base16 Shell
BASE16_SHELL=$HOME/.base16-shell/ BASE16_SHELL=$HOME/.base16-shell/
[ -n "$PS1" ] && dark [ -n "$PS1" ] && dark
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# zplug
if ! zplug check; then
zplug install
fi
zplug load