cleanup zshrc and add custom plugins option

This commit is contained in:
Jidbo 2019-12-11 22:38:05 +01:00
parent 8d9a766ede
commit 7c7d4c506e
No known key found for this signature in database
GPG key ID: 176CBC4DBB0A8965
5 changed files with 27 additions and 11 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
localcommands
vim/bundle/*
vim/autoload

2
shell/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
localcommands
plugins

View file

@ -0,0 +1 @@
alias vi="vim"

8
shell/plugins.example Normal file
View file

@ -0,0 +1,8 @@
# plugins
plugins=(
git
pip
screen
artisan
fzf
)

View file

@ -3,17 +3,23 @@ export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
# plugins
if [ -f ~/.dotfiles/shell/plugins ]
then
source ~/.dotfiles/shell/plugins
else
# plugins
plugins=(
git
pip
screen
fzf
artisan
z
)
fi
source $ZSH/oh-my-zsh.sh
# User configuration
# Helper Functions
@ -27,14 +33,14 @@ export EDITOR='vim'
# aliases
alias ll='ls -l'
alias vi='vim'
alias la='ls -la'
alias :q='exit'
alias fresh="source ~/.zshrc"
# localcommands
if [ -f ~/.dotfiles/localcommands ]
if [ -f ~/.dotfiles/shell/localcommands ]
then
source ~/.dotfiles/localcommands
source ~/.dotfiles/shell/localcommands
fi
# Tmuxinator autocomplete