zsh/zsh.d/Darwin/50-darwin.zsh

28 lines
846 B
Bash

# Darwin/OSX
# Environment and aliases for OSX
# Setup brew
# We need it here to fix the PATH
# so we can setup pyenv and other stuff
for prefix in /usr/local /opt/homebrew; do
brew=$(whence $prefix/bin/brew)
if [ $brew ]; then
eval "$($brew shellenv)"
fi
done
export LSCOLORS="ExgxcxdxCxegedabagacad"
alias ls='ls -F -G'
alias ldd='otool -L'
alias skill=killall
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'
# Setup iTerm shell integration
test -e $HOME/.iterm2_shell_integration.zsh && source $HOME/.iterm2_shell_integration.zsh && export ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX=YES || echo "iTerm sh integration not installed"
# vim: set ts=4 sw=4 tw=0 ft=zsh :