1
0
Fork 0

migrate to zgen

This commit is contained in:
Maurice Audin 2017-03-29 16:18:06 +02:00
parent 32cee960c6
commit fb806b9b5e
2 changed files with 31 additions and 33 deletions

View file

@ -1,15 +1,12 @@
zsh
===
Zsh configuration using antigen. Clone in ~/.zsh and do
Zsh configuration using zgen.
```
$ cd /tmp/
$ git clone https://github.com/zsh-users/antigen.git
$ cd antigen
$ source antigen.zsh
$ antigen bundle zsh-users/antigen
$ antigen bundle hybris42/zsh
$ cd
$ ln -s $HOME/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-hybris42-SLASH-zsh.git/zshrc $HOME/.zshrc
$ git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
$ source ${HOME}/.zgen/zgen.zsh
$ zgen clone hybris42/zsh
$ ln -s ${HOME}/.zgen/hybris42/zsh-master/zshrc $HOME/.zshrc
$ source ${HOME}/.zshrc
```

49
zshrc
View file

@ -1,28 +1,29 @@
source $HOME/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-antigen.git/antigen.zsh
# load zgen
source "${HOME}/.zgen/zgen.zsh"
antigen use oh-my-zsh
antigen bundle zsh-users/antigen
# if the init scipt doesn't exist
if ! zgen saved; then
antigen bundles <<EOBUNDLES
# omz
colored-man-pages
colorize
copydir
copyfile
extract
git
jump
rsync
ssh-agent
systemadmin
web-search
z
zsh_reload
# specify plugins here
zgen oh-my-zsh
zgen oh-my-zsh plugins/colored-man-pages
zgen oh-my-zsh plugins/colorize
zgen oh-my-zsh plugins/copydir
zgen oh-my-zsh plugins/copyfile
zgen oh-my-zsh plugins/extract
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/jump
zgen oh-my-zsh plugins/rsync
zgen oh-my-zsh plugins/ssh-agent
zgen oh-my-zsh plugins/systemadmin
zgen oh-my-zsh plugins/web-search
zgen oh-my-zsh plugins/z
zgen oh-my-zsh plugins/zsh_reload
# local
hybris42/zsh
EOBUNDLES
# personnal configuration
zgen load hybris42/zsh hybris.plugin.zsh
zgen load hybris42/zsh hybris.zsh-theme
antigen theme hybris42/zsh hybris
antigen apply
# generate the init script from plugins above
zgen save
fi