diff --git a/installers/brew.sh b/installers/brew.sh index 0cf80f9..df843d2 100755 --- a/installers/brew.sh +++ b/installers/brew.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + if ! type "brew" > /dev/null; then echo '`brew` not found. Install Homebrew' /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" diff --git a/installers/dein.sh b/installers/dein.sh index 9ad9607..a0bfd64 100755 --- a/installers/dein.sh +++ b/installers/dein.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + # Install dein INSTALLATION_DIR=$HOME/.cache/dein diff --git a/installers/xcode.sh b/installers/xcode.sh index 6939170..882ffe6 100755 --- a/installers/xcode.sh +++ b/installers/xcode.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + if ! type "xcodebuild" > /dev/null ; then xcodes install --latest fi diff --git a/installers/zplug.sh b/installers/zplug.sh index 3918fa4..fab92b9 100755 --- a/installers/zplug.sh +++ b/installers/zplug.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + if [ ! -d $ZPLUG_HOME ]; then curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh fi diff --git a/settings/macos/install.sh b/settings/macos/install.sh index 462d99c..ae45c02 100755 --- a/settings/macos/install.sh +++ b/settings/macos/install.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + # NSGlobalDomain # 全ての拡張子のファイルを表示 defaults write NSGlobalDomain AppleShowAllExtensions -bool true diff --git a/settings/vscode/install-extensions.sh b/settings/vscode/install-extensions.sh index 7acb978..9602af7 100755 --- a/settings/vscode/install-extensions.sh +++ b/settings/vscode/install-extensions.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + if ! type 'code' > /dev/null; then echo 'Please install vscode and activate `code` command.' exit 1 diff --git a/settings/vscode/install.sh b/settings/vscode/install.sh index 5a8472e..6b8d6b4 100755 --- a/settings/vscode/install.sh +++ b/settings/vscode/install.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + SCRIPT_DIR=$(cd $(dirname $0) && pwd) VSCODE_DOT_DIRECTORY=$HOME/.vscode VSCODE_SETTING_DIR=$HOME/Library/Application\ Support/Code/User diff --git a/settings/xcode/install.sh b/settings/xcode/install.sh index 6939170..882ffe6 100644 --- a/settings/xcode/install.sh +++ b/settings/xcode/install.sh @@ -1,3 +1,5 @@ +#!/bin/zsh + if ! type "xcodebuild" > /dev/null ; then xcodes install --latest fi