2018-08-18 13:15:18 +02:00
|
|
|
# Path to your oh-my-zsh installation.
|
2018-11-25 11:32:52 +01:00
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
2018-08-18 13:15:18 +02:00
|
|
|
|
2019-01-19 12:03:45 +01:00
|
|
|
ZSH_THEME="robbyrussell"
|
2018-08-18 13:15:18 +02:00
|
|
|
|
2019-01-19 14:47:24 +01:00
|
|
|
# plugins
|
2018-08-18 13:15:18 +02:00
|
|
|
plugins=(
|
|
|
|
git
|
|
|
|
pip
|
2018-10-30 13:46:31 +01:00
|
|
|
screen
|
2019-01-18 22:29:22 +01:00
|
|
|
fzf
|
2019-10-04 23:35:10 +02:00
|
|
|
artisan
|
2018-08-18 13:15:18 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
|
|
|
# User configuration
|
|
|
|
|
2019-01-19 14:47:24 +01:00
|
|
|
# Helper Functions
|
|
|
|
# Returns whether the given command is executable or aliased.
|
|
|
|
_has() {
|
|
|
|
return $( whence $1 >/dev/null )
|
|
|
|
}
|
2018-08-18 13:15:18 +02:00
|
|
|
|
2018-12-07 12:15:50 +01:00
|
|
|
# Set vim as default editor
|
|
|
|
export EDITOR='vim'
|
|
|
|
|
2019-01-19 14:47:24 +01:00
|
|
|
# aliases
|
2018-08-18 13:15:18 +02:00
|
|
|
alias ll='ls -l'
|
|
|
|
alias vi='vim'
|
|
|
|
alias la='ls -la'
|
2019-01-19 16:34:16 +01:00
|
|
|
alias :q='exit'
|
2019-01-19 14:47:24 +01:00
|
|
|
|
|
|
|
# localcommands
|
2019-12-11 22:16:18 +01:00
|
|
|
if [ -f ~/.dotfiles/localcommands ]
|
2018-08-18 13:15:18 +02:00
|
|
|
then
|
2019-12-11 22:16:18 +01:00
|
|
|
source ~/.dotfiles/localcommands
|
2018-08-18 13:15:18 +02:00
|
|
|
fi
|
2019-01-19 14:47:24 +01:00
|
|
|
|
2018-12-07 12:32:38 +01:00
|
|
|
# Tmuxinator autocomplete
|
|
|
|
if [ -f ~/.bin/tmuxinator.zsh ]; then
|
2019-01-19 14:47:24 +01:00
|
|
|
source ~/.bin/tmuxinator.zsh
|
|
|
|
fi
|
|
|
|
|
|
|
|
# fzf + ag configuration
|
|
|
|
if _has fzf && _has ag; then
|
|
|
|
export FZF_CTRL_T_COMMAND='ag --hidden --nocolor --ignore .git -g ""'
|
2018-12-07 12:32:38 +01:00
|
|
|
fi
|
2019-01-19 15:02:34 +01:00
|
|
|
|
|
|
|
export FZF_ALT_C_COMMAND='find . -type d'
|
2019-01-19 16:34:16 +01:00
|
|
|
|
2018-12-07 12:32:38 +01:00
|
|
|
export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|