Browse Source

merge upstream

James Cox 14 years ago
parent
commit
8a8a7bafa0
14 changed files with 16 additions and 6 deletions
  1. 2 0
      .gitignore
  2. 5 0
      README.textile
  3. 0 0
      custom/example.zsh
  4. 0 0
      lib/aliases.zsh
  5. 0 0
      lib/colors.zsh
  6. 0 0
      lib/completion.zsh
  7. 0 0
      lib/functions.zsh
  8. 0 0
      lib/git.zsh
  9. 0 0
      lib/grep.zsh
  10. 3 3
      history.zsh
  11. 0 0
      lib/key-bindings.zsh
  12. 0 0
      lib/prompt.zsh
  13. 2 2
      rake_completion.zsh
  14. 4 1
      oh-my-zsh.sh

+ 2 - 0
.gitignore

@@ -1,3 +1,5 @@
 locals.zsh
 log/.zsh_history
 projects.zsh
+custom/*.zsh
+!custom/example.zsh

+ 5 - 0
README.textile

@@ -43,8 +43,13 @@ TODO: Update this..
 * much much more..
 
 h2. Useful
+
 the "refcard":http://www.bash2zsh.com/zsh_refcard/refcard.pdf is pretty tasty for tips.
 
+h3. Customization
+
+If you want to override any of the default behavior, just add a new file (ending in @.zsh@) into the @custom/@ directory.
+
 h3. Uninstalling
 
 If you want to uninstall it, just run @uninstall_oh_my_zsh@ from the command line and it'll remove itself and revert you to bash (or your previous zsh config).

projects.zsh-example → custom/example.zsh


aliases.zsh → lib/aliases.zsh


colors.zsh → lib/colors.zsh


completion.zsh → lib/completion.zsh


functions.zsh → lib/functions.zsh


git.zsh → lib/git.zsh


grep.zsh → lib/grep.zsh


+ 3 - 3
history.zsh

@@ -1,8 +1,8 @@
 ## Command history configuration
-#
 HISTFILE=$HOME/.zsh_history
-HISTSIZE=5000
-SAVEHIST=5000
+HISTSIZE=10000
+SAVEHIST=10000
+
 setopt hist_ignore_dups # ignore duplication command history list
 setopt share_history # share command history data
 

key-bindings.zsh → lib/key-bindings.zsh


prompt.zsh → lib/prompt.zsh


+ 2 - 2
rake_completion.zsh

@@ -17,7 +17,7 @@ _rake () {
   fi
 }
 
-compdef _rake rake
+compctl -K _rake rake
 
 function _cap_does_task_list_need_generating () {
   if [ ! -f .cap_tasks~ ]; then return 0;
@@ -39,4 +39,4 @@ function _cap () {
   fi
 }
 
-compdef _cap cap
+compctl -K _cap cap

+ 4 - 1
oh-my-zsh.sh

@@ -2,4 +2,7 @@
 
 # Load all of the config files in ~/oh-my-zsh that end in .zsh
 # TIP: Add files you don't want in git to .gitignore
-for config_file ($ZSH/*.zsh) source $config_file
+for config_file ($ZSH/lib/*.zsh) source $config_file
+
+# Load all of your custom configurations from custom/
+for config_file ($ZSH/custom/*.zsh) source $config_file