summaryrefslogtreecommitdiff
path: root/zshrc
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 /zshrc
parent899da7342c88f0b3319c8baa95d41a3a0e810893 (diff)
Replace antigen by zgen
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc38
1 files changed, 23 insertions, 15 deletions
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