Commits

Panagiotis Mavrogiorgos committed 540be86

Move from oh-my-zsh to antigen.

Comments (0)

Files changed (1)

 #
 
 #-------------------------------------------------------------------------------
-# Oh-my-zsh stuff
+# Antigen stuff
 #-------------------------------------------------------------------------------
-# Path to your oh-my-zsh configuration.
-ZSH=$HOME/.oh-my-zsh
+# Set antigen specific variables
+ANTIGEN_DEFAULT_REPO_URL=https://github.com/robbyrussell/oh-my-zsh
+ADOTDIR=~/.zsh           # directory to store cloned antigen repositories
 
-# Set name of the theme to load.
-# Look in ~/.oh-my-zsh/themes/
-# Optionally, if you set this to "random", it'll load a random theme each
-# time that oh-my-zsh is loaded.
-ZSH_THEME="prose"
+# Load antigen
+source $ADOTDIR/antigen/antigen.zsh
 
-# Example aliases
-# alias zshconfig="mate ~/.zshrc"
-# alias ohmyzsh="mate ~/.oh-my-zsh"
+# Load the oh-my-zsh's library
+antigen-bundle robbyrussell/oh-my-zsh lib
 
-# Set to this to use case-sensitive completion
-#CASE_SENSITIVE="true"
+# Load bundles from git repos
+antigen-bundle robbyrussell/oh-my-zsh plugins/git
+antigen-bundle robbyrussell/oh-my-zsh plugins/mercurial
+antigen-bundle robbyrussell/oh-my-zsh plugins/python
+antigen-bundle robbyrussell/oh-my-zsh plugins/pip
+antigen-bundle robbyrussell/oh-my-zsh plugins/vi-mode
+antigen-bundle zsh-users/zsh-syntax-highlighting
+antigen-bundle zsh-users/zsh-completions
 
-# Comment this out to disable bi-weekly auto-update checks
-# DISABLE_AUTO_UPDATE="true"
+# Load the theme. Full path is required!
+antigen-theme ~/.dotfiles/zsh/prose.zsh-theme --no-local-clone
 
-# Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
-# export UPDATE_ZSH_DAYS=13
-
-# Uncomment following line if you want to disable colors in ls
-# DISABLE_LS_COLORS="true"
-
-# Uncomment following line if you want to disable autosetting terminal title.
-# DISABLE_AUTO_TITLE="true"
-
-# Uncomment following line if you want red dots to be displayed while waiting for completion
-# COMPLETION_WAITING_DOTS="true"
-
-# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
-# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
-# Example format: plugins=(rails git textmate ruby lighthouse)
-plugins=(mercurial python pip git vi-mode)
-
-source $ZSH/oh-my-zsh.sh
+# Apply antigen stuff
+antigen-apply
 
 #-------------------------------------------------------------------------------
-# Customize to your needs...
+# zsh autoloads
+#-------------------------------------------------------------------------------
+autoload -U compinit; compinit;         # enable autocompletion
+autoload -U promptinit; promptinit;     # enable change of prompts on-the-fly
+
+#-------------------------------------------------------------------------------
+# zsh options
+#-------------------------------------------------------------------------------
+setopt no_beep                  # zsh will not beep
+
+setopt auto_pushd               # make cd push the old directory onto the
+                                # directory stack
+
+setopt notify                   # Report the status of background jobs
+                                # immediately, rather than waiting until just
+                                # before printing a prompt.
+
+setopt inc_append_history       # multiple zsh sessions will append to the same
+                                # history file (incrementally, after each
+                                # command is executed)
+
+setopt share_history            # share history among multiple zsh shells
+
+setopt hist_expire_dups_first   # purge duplicates first
+
+setopt hist_ignore_all_dups     # if a new command line being added to the
+                                # history list duplicates an older one, remove
+                                # the older command from the list
+
+setopt hist_reduce_blanks       # reduce unnecessary blanks from commands
+                                # being written to history
+
+#-------------------------------------------------------------------------------
+# Basics
+#-------------------------------------------------------------------------------
+# set umask
+umask 022
+
+# editor/visual/pager
+export EDITOR=vim
+export VISUAL=vim
+export PAGER=less
+
+#-------------------------------------------------------------------------------
+# Customizations
 #-------------------------------------------------------------------------------
 # Set keyboard layout switcher
 setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,gr
 
-
-# enable autocompletion
-autoload -U compinit; compinit;
-
-# enable change prompts on-the-fly
-autoload -U promptinit; promptinit;
-
-# Set customization folder
-ZSH_CUSTOMIZATIONS=$HOME/.dotfiles/zsh
-
 # Source customization files
-source $ZSH_CUSTOMIZATIONS/aliases.zsh
-source $ZSH_CUSTOMIZATIONS/key-bindings.zsh
-
+source ./aliases.zsh
+source ./key-bindings.zsh