summary refs log tree commit diff stats
path: root/hooks/post-up
diff options
context:
space:
mode:
authorAlan Pearce2016-10-31 10:56:22 +0100
committerAlan Pearce2016-10-31 10:56:22 +0100
commit13c81a22ce6e9e206d47feb618e9ad5c9ac0ce28 (patch)
treea4e26e23e7238b5f003f2286e685d0aea1b51557 /hooks/post-up
parent999b7ac844c980b46044d4e0c188e1a3bf76bc2e (diff)
downloadnixfiles-13c81a22ce6e9e206d47feb618e9ad5c9ac0ce28.tar.lz
nixfiles-13c81a22ce6e9e206d47feb618e9ad5c9ac0ce28.tar.zst
nixfiles-13c81a22ce6e9e206d47feb618e9ad5c9ac0ce28.zip
Reindent all the things
Diffstat (limited to 'hooks/post-up')
-rwxr-xr-xhooks/post-up/emacs6
-rwxr-xr-xhooks/post-up/zsh22
2 files changed, 14 insertions, 14 deletions
diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs
index aad74be7..cb9c0916 100755
--- a/hooks/post-up/emacs
+++ b/hooks/post-up/emacs
@@ -2,8 +2,8 @@
 
 if [[ -s $commands[emacs] ]]
 then
-	pushd ~/.emacs.d
-	emacs --batch --eval "(progn
+  pushd ~/.emacs.d
+  emacs --batch --eval "(progn
 (setq vc-follow-symlinks nil)
 (find-file \"init.org\")
 (require 'ob-tangle)
@@ -11,5 +11,5 @@ then
 (byte-compile-file \"init.el\")
 (load-file \"init.el\")
 )"
-	popd
+  popd
 fi
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh
index b7a7d4a2..3eef6e51 100755
--- a/hooks/post-up/zsh
+++ b/hooks/post-up/zsh
@@ -4,26 +4,26 @@ ZDOTDIR="${XDG_CONFIG_HOME:=~/.config}/zsh"
 pushd $ZDOTDIR
 for f in z*(-.)
 do
-	if [[ -e .$f ]]
-	then
-		if [[ ! -h .$f ]]
-		then
-			echo ".$f already exists as a regular file, ignoring"
-		fi
-	else
-		ln -s $f .$f
-	fi
+  if [[ -e .$f ]]
+  then
+    if [[ ! -h .$f ]]
+    then
+      echo ".$f already exists as a regular file, ignoring"
+    fi
+  else
+    ln -s $f .$f
+  fi
 done
 popd
 
 if [[ ! -d ~/.cache/zsh ]]
 then
-	mkdir -p ~/.cache/zsh
+  mkdir -p ~/.cache/zsh
 fi
 
 if [[ -z $commands[zplug] && ! -d ~/projects/zplug/ ]]
 then
-	git clone git://github.com/zplug/zplug ~/projects/zplug/
+  git clone git://github.com/zplug/zplug ~/projects/zplug/
 fi
 
 zsh -ic "zplug install"