Browse Source

Add some zsh plugins via git submodule

Emmanuel Bouthenot 12 years ago
parent
commit
f965088424
4 changed files with 13 additions and 1 deletions
  1. 3 0
      .gitmodules
  2. 1 0
      .zsh.d/externals.d/.placeholder
  3. 1 0
      .zsh.d/externals.d/zsh-syntax-highlighting
  4. 8 1
      .zsh.d/zshrc

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule ".zsh.d/externals.d/zsh-syntax-highlighting"]
+	path = .zsh.d/externals.d/zsh-syntax-highlighting
+	url = git://github.com/zsh-users/zsh-syntax-highlighting.git

+ 1 - 0
.zsh.d/externals.d/.placeholder

@@ -0,0 +1 @@
+# This file is a simple placeholder so that its parent directory will be tracked by git

+ 1 - 0
.zsh.d/externals.d/zsh-syntax-highlighting

@@ -0,0 +1 @@
+Subproject commit d2715e2cb3294880bbc6a75b91288243054218d0

+ 8 - 1
.zsh.d/zshrc

@@ -40,12 +40,19 @@ fi
 unset os
 
 # sourcing config files
-for f in $DOTZSHDIR/config.d/*.zsh; do
+for f in $DOTZSHDIR/config.d/*.zsh ; do
     if [ -r "$f" ]; then
         source $f
     fi
 done
 
+# sourcing externals plugins
+for d in $DOTZSHDIR/externals.d/*; do
+    if [ -f "$d/${d##*/}.zsh" ]; then
+        source "$d/${d##*/}.zsh"
+    fi
+done
+
 # using 'sudo zsh'
 if [ "$SUDO_USER" -a "$UID" = 0 ]; then
     # define root history path