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/bundle/*
|
||||||
vim/autoload
|
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
|
||||||
|
)
|
20
shell/zshrc
20
shell/zshrc
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue