abra zsh config 2.0
This commit is contained in:
@@ -1,34 +1,17 @@
|
||||
#
|
||||
# Executes commands at the start of an interactive session.
|
||||
#
|
||||
# Authors:
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
function zsource_if_exists {
|
||||
if [[ -s "$1" ]]; then
|
||||
source "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# Source Prezto.
|
||||
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||
fi
|
||||
|
||||
source ~/.zoptions
|
||||
|
||||
source ~/.zalias
|
||||
|
||||
source ~/.zfunc
|
||||
|
||||
if [[ -s "$HOME/.iterm2_shell_integration.zsh" ]]; then
|
||||
source "$HOME/.iterm2_shell_integration.zsh"
|
||||
fi
|
||||
|
||||
add_dir_to_path "$HOME/bin"
|
||||
add_dir_to_path "$HOME/work/arcadia"
|
||||
|
||||
add_dir_to_path "$HOME/brew/sbin"
|
||||
add_dir_to_path "$HOME/brew/bin"
|
||||
|
||||
|
||||
# export PATH="$HOME/bin/":$PATH
|
||||
# export PATH="$HOME/work/arcadia/":$PATH
|
||||
|
||||
|
||||
# if is_local; then
|
||||
# export PATH="$HOME/brew/sbin":"$HOME/brew/bin":$PATH
|
||||
# export DYLD_LIBRARY_PATH="/Developer/NVIDIA/CUDA-8.0/lib:/usr/local/cuda/lib"
|
||||
# fi
|
||||
|
||||
# update, background+disown
|
||||
update_.g &!
|
||||
zsource_if_exists "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||
|
||||
zsource_if_exists "${ZDOTDIR:-$HOME}/.zprezto/abra/main.zsh"
|
||||
|
Reference in New Issue
Block a user