2017-07-14 21:20:20 +02:00
|
|
|
# Check for update, set DISABLE_UPDATE_PROMPT=yes to disable the prompt and automatically update
|
|
|
|
env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $DOTFILES/check_for_update.sh
|
|
|
|
|
|
|
|
# oh-my-zsh plugins (some of these have to be installed by running install.sh or install_zsh_plugins, found in install.sh)
|
2017-07-17 02:43:42 +02:00
|
|
|
shared_plugins=(git alias-tips sudo common-aliases fast-syntax-highlighting zsh-autosuggestions colored-man-pages zsh-navigation-tools zsh_reload )
|
2017-07-14 21:20:20 +02:00
|
|
|
|
|
|
|
uname=$(uname -a)
|
|
|
|
if [[ $uname == *"Darwin"* ]]; then
|
2017-07-17 02:00:15 +02:00
|
|
|
if [[ $(which brew) ]]; then
|
|
|
|
os_extra=(osx brew)
|
2017-07-17 02:03:37 +02:00
|
|
|
elif [[ $(which port) ]]; then
|
2017-07-17 02:00:15 +02:00
|
|
|
os_extra=(osx macports)
|
|
|
|
else
|
|
|
|
os_extra=(osx)
|
|
|
|
fi
|
2017-07-14 21:20:20 +02:00
|
|
|
elif [[ $uname == *"ARCH"* ]]; then
|
|
|
|
os_extra=(archlinux)
|
|
|
|
elif [[ $uname == *"Debian"* ]]; then
|
|
|
|
os_extra=(debian)
|
2017-06-12 16:22:05 +02:00
|
|
|
fi
|
|
|
|
|
2017-07-17 02:00:15 +02:00
|
|
|
|
|
|
|
# https://www.xkcd.com/378/
|
|
|
|
export EDITOR="vim"
|
|
|
|
|
2017-07-14 21:20:20 +02:00
|
|
|
plugins=($shared_plugins $os_extra)
|
|
|
|
|
2017-07-17 02:00:15 +02:00
|
|
|
alias esource="$EDITOR $HOME/.zshrc"
|
2017-07-14 21:20:20 +02:00
|
|
|
alias resource="source $HOME/.zshrc"
|
|
|
|
alias dotedit="$EDITOR $DOTFILES/brethil_dotfile.sh"
|
2017-07-17 02:00:15 +02:00
|
|
|
# Custom definitions files
|
|
|
|
alias funedit="$EDITOR ~/.dotfiles_functions.sh"
|
|
|
|
alias aledit="$EDITOR ~/.dotfiles_aliases.sh"
|
2017-06-12 16:22:05 +02:00
|
|
|
|
|
|
|
# Extras
|
|
|
|
functions_file=$DOTFILES/functions.sh # Function definitions
|
|
|
|
aliases_file=$DOTFILES/aliases.sh # Aliases definitions
|
|
|
|
colors_file=$DOTFILES/colors.sh # Colors definitions
|
|
|
|
|
|
|
|
# Source extras
|
2017-07-17 02:00:15 +02:00
|
|
|
if [ -f $functions_file ]; then source $functions_file; else echo "[brethil-dotfiles] Couldn't load functions: $functions_file"; fi
|
|
|
|
if [ -f $aliases_file ]; then source $aliases_file; else echo "[brethil-dotfiles] Couldn't load aliases: $aliases_file"; fi
|
|
|
|
if [ -f $colors_file ]; then source $colors_file; else echo "[brethil-dotfiles] Couldn't load colors: $colors_file";fi
|
2017-06-12 16:22:05 +02:00
|
|
|
|
|
|
|
### SETUP PATHS ####
|
2017-07-14 21:20:20 +02:00
|
|
|
export PATH=$PATH:$HOME/bin
|
|
|
|
#export PYTHONPATH=$PYTHONPATH:$HOME/python/:$HOME/bin
|