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:
20
custom/zsh.sample/after/after.sample.zsh
Normal file
20
custom/zsh.sample/after/after.sample.zsh
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user