OS X setup improvements
This commit is contained in:
parent
c7ae560dc1
commit
5ebdaecf90
8
aliases
8
aliases
|
@ -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'
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -35,6 +35,7 @@ printf "Installing xquartz..."
|
||||||
brew_packages=(
|
brew_packages=(
|
||||||
'tree'
|
'tree'
|
||||||
'openssl'
|
'openssl'
|
||||||
|
'git'
|
||||||
# 'xclip'
|
# 'xclip'
|
||||||
'rlwrap'
|
'rlwrap'
|
||||||
'cmake'
|
'cmake'
|
||||||
|
|
6
zlogin
6
zlogin
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user