summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-07-09 16:55:01 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-07-09 16:55:01 +0100
commit19fbede22889a96e7d0b2c377eda74bfe116d440 (patch)
treefa0e5b7810ecf7a02da62cea458e432d12fc7f73
parent899da7342c88f0b3319c8baa95d41a3a0e810893 (diff)
Replace antigen by zgen
-rwxr-xr-xinstall.sh1
-rw-r--r--zshrc38
2 files changed, 24 insertions, 15 deletions
diff --git a/install.sh b/install.sh
index 716776c..0e7ba9c 100755
--- a/install.sh
+++ b/install.sh
@@ -16,6 +16,7 @@ repodirs[junegunn/fzf]=$home/.fzf
repodirs[icholy/ttygif]=$home/github/ttygif
repodirs[tmux-plugins/tpm]=$home/.tmux/plugins/tpm
repodirs[junegunn/vim-plug]=$dir/vim/vim-plug
+repodirs[tarjoilija/zgen]=$home/.zgen
function after_vimplug {
cd ..
diff --git a/zshrc b/zshrc
index 9651714..3b9541f 100644
--- a/zshrc
+++ b/zshrc
@@ -1,18 +1,29 @@
-# Source antigen
-source ~/.antigen.zsh
+# Load zgen
+source "/home/urbain/.zgen/zgen.zsh"
-# Load the oh-my-zsh's library.
-antigen use oh-my-zsh
+if ! zgen saved; then
-# Bundles from the default repo (robbyrussell's oh-my-zsh).
-antigen bundle git
-antigen bundle vi-mode
-antigen bundle ubuntu
-antigen bundle tmux
-antigen bundle rupa/z
+ echo "Creating a zgen save"
-# Theme
-antigen theme eastwood
+ # Load oh-my-zsh framework
+ zgen oh-my-zsh
+
+ # Plugins
+ zgen oh-my-zsh plugins/git
+ zgen oh-my-zsh plugins/vi-mode
+ zgen oh-my-zsh plugins/ubuntu
+ zgen oh-my-zsh plugins/tmux
+ zgen rupa/z
+
+ # Load completion
+ zgen load zsh-users/zsh-completions src
+
+ # Theme
+ zgen oh-my-zsh themes/eastwood
+
+ # Save all to init script
+ zgen save
+fi
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
@@ -20,9 +31,6 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/g
# Editor
export EDITOR=/usr/bin/nvim
-# ssh
-# export SSH_KEY_PATH="~/.ssh/dsa_id"
-
# Apps for filetypes
alias -s vim=$EDITOR
alias -s cpp=$EDITOR