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/bundle/*
vim/autoload 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

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