OS X setup improvements

This commit is contained in:
Michael Campagnaro 2017-11-20 23:08:51 -05:00
parent c7ae560dc1
commit 5ebdaecf90
4 changed files with 15 additions and 3 deletions

View File

@ -141,9 +141,11 @@ function gitCmdWrapper {
fi fi
} }
# Fix a weird mingw 'not a valid identifierline' error. if [[ $platform != 'Darwin' && $platform != 'Linux' ]]; then
# Got the fix from https://github.com/Alexpux/MSYS2-packages/issues/735#issuecomment-328938800 # Fix a weird mingw 'not a valid identifierline' error.
alias git="PATH=/usr/bin git" # Got the fix from https://github.com/Alexpux/MSYS2-packages/issues/735#issuecomment-328938800
alias git="PATH=/usr/bin git"
fi
alias am='git commit --amend' alias am='git commit --amend'
alias ama='git commit --amend -C head --author' alias ama='git commit --amend -C head --author'

View File

@ -34,6 +34,9 @@ setup_dotfile_repo() {
printf "${YELLOW}Creating dotfiles symlink${NORMAL}\n" printf "${YELLOW}Creating dotfiles symlink${NORMAL}\n"
ln -s $cwd $HOME/.dotfiles ln -s $cwd $HOME/.dotfiles
fi fi
# Used by various things (e.g. vim history)
mkdir -p $HOME/tmp
} }
link_file() { link_file() {

View File

@ -35,6 +35,7 @@ printf "Installing xquartz..."
brew_packages=( brew_packages=(
'tree' 'tree'
'openssl' 'openssl'
'git'
# 'xclip' # 'xclip'
'rlwrap' 'rlwrap'
'cmake' 'cmake'

6
zlogin
View File

@ -3,3 +3,9 @@ if [[ -f ~/.current_path~ ]]; then
cd `cat ~/.current_path~` cd `cat ~/.current_path~`
rm ~/.current_path~ rm ~/.current_path~
fi fi
# Need to edit the path again here so that we can get the homebrew bin folder ahead of
# everything else. This is necessary because zsh is modifying the path in zshrc, and
# that causes us to run out of /usr/bin for programs that we want to use from homebrew's
# bin
path=($HOME/homebrew/opt/openssl/bin $HOME/homebrew/sbin $HOME/homebrew/bin $path)