summary refs log tree commit diff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xinstall.sh50
1 files changed, 25 insertions, 25 deletions
diff --git a/install.sh b/install.sh
index 7a939866..63790ef0 100755
--- a/install.sh
+++ b/install.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env zsh
 
 # Create symlinks in ~ for files in the current directory.
 
@@ -16,33 +16,33 @@ link() {
   [ -h "$dest_path" ] && return
   [ -e "$dest_path" ] && error "$dest_path exists"
 
-  mkdir -p "$(dirname $dest_path)"
+  mkdir -p "$(dirname "$dest_path")"
   ln -s "$source_path" "$dest_path"
   echo "$1"
 }
 
-if [ -d ~/Library ]; then
-  link Library/Application\ Support/Karabiner/private.xml
-  link Library/Keyboard\ Layouts/Programmer.keylayout
+if [ -d '~/Library' ]; then
+  link 'Library/Application Support/Karabiner/private.xml'
+  link 'Library/Keyboard Layouts/Programmer.keylayout'
 fi
 
-link .bin/clock.c
-link .bin/jrp.c
-link .bin/manpager
-link .bin/pbcopy.c
-link .bin/pbd.c
-link .bin/xx.c
-link .config/git/config
-link .config/git/ignore
-link .config/htop/htoprc
-link .config/nvim/autoload/pathogen.vim
-link .config/nvim/colors/lame.vim
-link .config/nvim/init.vim
-link .config/nvim/syntax/nasm.vim
-link .gdbinit
-link .gnupg/gpg-agent.conf
-link .inputrc
-link .psqlrc
-link .ssh/config
-link .tmux.conf
-link .zshrc
+link '.bin/clock.c'
+link '.bin/jrp.c'
+link '.bin/manpager'
+link '.bin/pbcopy.c'
+link '.bin/pbd.c'
+link '.bin/xx.c'
+link '.config/git/config'
+link '.config/git/ignore'
+link '.config/htop/htoprc'
+link '.config/nvim/autoload/pathogen.vim'
+link '.config/nvim/colors/lame.vim'
+link '.config/nvim/init.vim'
+link '.config/nvim/syntax/nasm.vim'
+link '.gdbinit'
+link '.gnupg/gpg-agent.conf'
+link '.inputrc'
+link '.psqlrc'
+link '.ssh/config'
+link '.tmux.conf'
+link '.zshrc'