Change indentation from 4 for to 2 spaces in shell scripts

This commit is contained in:
2012-04-21 20:25:29 +01:00
parent 9822615e79
commit d2ea935228
9 changed files with 86 additions and 86 deletions

View File

@@ -13,9 +13,9 @@ path_prepend "/usr/local/bin"
# Load bash or zsh specific init files
if [ -n "$BASH_VERSION" ]; then
source "$DOTSHELL/bashrc.sh"
source "$DOTSHELL/bashrc.sh"
elif [ -n "$ZSH_VERSION" ]; then
source "$DOTSHELL/zshrc.sh"
source "$DOTSHELL/zshrc.sh"
fi
# Aliases
@@ -62,6 +62,6 @@ path_prepend "./vendor/bundle/bin" # Ruby Bundler
# Ensure TMPDIR is the same for local and remote ssh logins
if [[ $TMPDIR == "/var/folders/"* ]] || [[ $TMPDIR == "" ]]; then
export TMPDIR="/tmp/user-$USER"
mkdir -p "$TMPDIR"
export TMPDIR="/tmp/user-$USER"
mkdir -p "$TMPDIR"
fi

View File

@@ -3,8 +3,8 @@
#
if [ -f "/Applications/Emacs.app/Contents/MacOS/Emacs" ]; then
alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
fi
if [ -f "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" ]; then
alias emacsclient="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient"
alias emacsclient="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient"
fi

View File

@@ -21,11 +21,11 @@ alias gx="gitx"
# Git Completion
if [ -f "/usr/local/etc/bash_completion.d/git-completion.bash" ]; then
source "/usr/local/etc/bash_completion.d/git-completion.bash"
source "/usr/local/etc/bash_completion.d/git-completion.bash"
fi
# Only needed for Bash. Zsh is much smarter with it's auto-completion ^_^
if [ -n "$BASH_VERSION" ]; then
complete -o default -o nospace -F _git g
complete -o default -o nospace -F _git gi
complete -o default -o nospace -F _git g
complete -o default -o nospace -F _git gi
fi

View File

@@ -4,5 +4,5 @@
# Load nvm if it's available
if [ -f "$HOME/.nvm/nvm.sh" ]; then
source "$HOME/.nvm/nvm.sh"
source "$HOME/.nvm/nvm.sh"
fi

View File

@@ -4,5 +4,5 @@
# Load virtualenv-burrito if it's available
if [ -f "$HOME/.venvburrito/startup.sh" ]; then
source "$HOME/.venvburrito/startup.sh"
source "$HOME/.venvburrito/startup.sh"
fi

View File

@@ -22,8 +22,8 @@ alias va="bundle exec vagrant"
# Load rbenv or RVM depending on which is available
if [ -d "$HOME/.rbenv/bin" ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
elif [ -s "$HOME/.rvm/scripts/rvm" ]; then
source "$HOME/.rvm/scripts/rvm"
source "$HOME/.rvm/scripts/rvm"
fi

View File

@@ -6,5 +6,5 @@ alias tml="tm ls"
# Tmux Completion
if [ -f "/usr/local/etc/bash_completion.d/tmux" ]; then
source "/usr/local/etc/bash_completion.d/tmux"
source "/usr/local/etc/bash_completion.d/tmux"
fi