cleanup zshrc and add custom plugins option
This commit is contained in:
parent
8d9a766ede
commit
7c7d4c506e
5 changed files with 27 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
|||
localcommands
|
||||
vim/bundle/*
|
||||
vim/autoload
|
||||
|
|
2
shell/.gitignore
vendored
Normal file
2
shell/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
localcommands
|
||||
plugins
|
1
shell/localcommands.example
Normal file
1
shell/localcommands.example
Normal file
|
@ -0,0 +1 @@
|
|||
alias vi="vim"
|
8
shell/plugins.example
Normal file
8
shell/plugins.example
Normal file
|
@ -0,0 +1,8 @@
|
|||
# plugins
|
||||
plugins=(
|
||||
git
|
||||
pip
|
||||
screen
|
||||
artisan
|
||||
fzf
|
||||
)
|
26
shell/zshrc
26
shell/zshrc
|
@ -4,16 +4,22 @@ export ZSH="$HOME/.oh-my-zsh"
|
|||
ZSH_THEME="robbyrussell"
|
||||
|
||||
# plugins
|
||||
plugins=(
|
||||
git
|
||||
pip
|
||||
screen
|
||||
fzf
|
||||
artisan
|
||||
)
|
||||
if [ -f ~/.dotfiles/shell/plugins ]
|
||||
then
|
||||
source ~/.dotfiles/shell/plugins
|
||||
else
|
||||
# plugins
|
||||
plugins=(
|
||||
git
|
||||
pip
|
||||
screen
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue