Browse Source

Add zprezto as a submodule.

Ian Adam Naval 6 years ago
parent
commit
4771f44cb1
4 changed files with 17 additions and 1 deletions
  1. 3
    0
      .gitmodules
  2. 1
    1
      install-dotfiles.sh
  3. 1
    0
      zprezto/.zprezto
  4. 12
    0
      zprezto/setup.zsh

+ 3
- 0
.gitmodules View File

@@ -0,0 +1,3 @@
1
+[submodule "zprezto/.zprezto"]
2
+	path = zprezto/.zprezto
3
+	url = git@git.ianonavy.com:ianonavy/prezto.git

+ 1
- 1
install-dotfiles.sh View File

@@ -80,4 +80,4 @@ do
80 80
   install_file $src $dest
81 81
 done
82 82
 
83
-find . -name setup.sh | while read setup; do sh -c "${setup}"; done
83
+find . -name "setup.*sh" | while read setup; do sh -c "${setup}"; done

+ 1
- 0
zprezto/.zprezto

@@ -0,0 +1 @@
1
+Subproject commit 4a38a65bfaec22ae22cadc0244d4738135ce7503

+ 12
- 0
zprezto/setup.zsh View File

@@ -0,0 +1,12 @@
1
+#!/bin/zsh
2
+
3
+ln -s $DOTFILES_ROOT/zprezto/.zprezto $HOME/
4
+
5
+pushd ${ZDOTDIR:-$HOME}
6
+
7
+setopt EXTENDED_GLOB
8
+for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
9
+  ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
10
+done
11
+
12
+popd

Loading…
Cancel
Save