diff options
author | June McEnroe <programble@gmail.com> | 2017-01-21 17:31:18 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-01-21 17:31:18 -0500 |
commit | 2adcfc1787030ecaa9917565d43f0c2c4ab4108d (patch) | |
tree | fcdf44051f29f8131b4e82a908985062c09ee953 /install.sh | |
parent | Group git aliases (diff) | |
download | src-2adcfc1787030ecaa9917565d43f0c2c4ab4108d.tar.gz src-2adcfc1787030ecaa9917565d43f0c2c4ab4108d.zip |
Use zsh for shell scripts
Diffstat (limited to '')
-rwxr-xr-x | install.sh | 50 |
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' |