Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (78 sloc) 1.76 KB
#
# Global fixes
#
# For sudo-ing aliases
# https://wiki.archlinux.org/index.php/Sudo#Passing_aliases
alias sudo='sudo '
# Ensure languages are set
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Ensure editor is set
export EDITOR=vim
# Start X at login for Arch boxes
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]] ; then
if hash startx 2>& /dev/null; then
startx && logout
fi
fi
# This fixes using SSH in urxvt
if [[ $TERM == 'rxvt-unicode' ]] ; then
export TERM='xterm'
fi
#
# Work specific config
#
if [[ -f ~/.zshrc-amazon ]]; then
source ~/.zshrc-amazon
fi
#
# OS Detection
#
UNAME=`uname`
# Fallback info
CURRENT_OS='Linux'
DISTRO=''
if [[ $UNAME == 'Darwin' ]]; then
CURRENT_OS='OS X'
else
# Must be Linux, determine distro
if [[ -f /etc/redhat-release ]]; then
# CentOS or Redhat?
if grep -q "CentOS" /etc/redhat-release; then
DISTRO='CentOS'
else
DISTRO='RHEL'
fi
fi
fi
# Use zsh-completions if it exists
if [[ -d "/usr/local/share/zsh-completions" ]]; then
fpath=(/usr/local/share/zsh-completions $fpath)
fi
# Load Antigen
source ~/.antigen.zsh
antigen bundle jdavis/zsh-files
antigen bundle rupa/z
#
# Antigen Theme
#
antigen theme jdavis/zsh-files themes/jdavis
#
# Antigen Bundles
#
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
# OS specific plugins
if [[ $CURRENT_OS == 'OS X' ]]; then
#antigen bundle brew
#antigen bundle brew-cask
elif [[ $CURRENT_OS == 'Linux' ]]; then
# None so far...
if [[ $DISTRO == 'CentOS' ]]; then
fi
elif [[ $CURRENT_OS == 'Cygwin' ]]; then
fi
# Secret info
antigen bundle ssh://git@bitbucket.com/joshd/secret.git
antigen apply