Load zsh customizations from custom/zsh/before/* and custom/zsh/after/* instead of filename globbing [Close #79]

* File pattern globbing was too brittle. If you had plugins incorrectly
   named, or had only a before or after directory, things would break in
   nonobvious ways.
This commit is contained in:
yan
2012-04-05 11:49:43 -07:00
parent fbcdf9aa0c
commit b292a7a33f
4 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
#
# Samples of what you can do in *.after.zsh files.
# You can create as many files as you like, or put everything in one.
#
# define your own aliases or override those provided by YADR.
alias ls='ls -lAhFG'
alias hosts='sudo vim /private/etc/hosts'
# set or override options. two of my favorite are below.
# Automatically cd to frequently used directories http://robots.thoughtbot.com/post/10849086566/cding-to-frequently-used-directories-in-zsh
setopt auto_cd
cdpath=($HOME/Dropbox/code)
# Fancy globbing http://linuxshellaccount.blogspot.com/2008/07/fancy-globbing-with-zsh-on-linux-and.html
setopt extendedglob