Initial commit, modular zsh config easy to extend with extra behaviours

This commit is contained in:
Danielle McLean 2016-10-02 18:17:25 +11:00
commit df6164e3aa
No known key found for this signature in database
GPG key ID: CC91589719027E94
22 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#! zsh
if [[ ! -f ~/.zplug/repos/zplug/zplug/init.zsh ]]; then
git clone https://github.com/zplug/zplug ~/.zplug/repos/zplug/zplug
fi
source ~/.zplug/repos/zplug/zplug/init.zsh
zplug zplug/zplug
zplug willghatch/zsh-saneopt
zplug bobthecow/git-flow-completion
zplug mafredri/zsh-async
zplug micha/resty
zplug rupa/z, use:z.sh
zplug sharat87/zsh-vim-mode
zplug sindresorhus/pure
zplug supercrabtree/k
zplug zsh-users/zsh-syntax-highlighting, nice:10
zplug zsh-users/zsh-completions, nice:11
zplug zsh-users/zsh-history-substring-search, nice:9
zplug trapd00r/LS_COLORS, hook-load:apply-trapd00r-colors
apply-trapd00r-colors() {
eval $(dircolors -b $ZPLUG_REPOS/trapd00r/LS_COLORS/LS_COLORS)
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
}
zplug check || zplug install
zplug load

View file

@ -0,0 +1,17 @@
#! zsh
alias has_command='whence >/dev/null'
alias ls="ls -F --color=auto"
alias lsl="ls -lh"
alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
alias pseudo="sudo"
if has_command xdg-open; then
alias ]='xdg-open'
else
alias ]='open'
fi
# make sure ELinks can detect when it's in tmux
alias elinks="STY= elinks"
has_command hub && alias git=hub

View file

@ -0,0 +1,12 @@
#! zsh
bindkey $terminfo[kcbt] reverse-menu-complete
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
autoload -Uz url-quote-magic
url-quote-magic-with-highlight() {
url-quote-magic
_zsh_highlight
}
zle -N self-insert url-quote-magic-with-highlight

View file

@ -0,0 +1,3 @@
#! zsh
export FZF_CTRL_R_OPTS="--sort"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

View file

@ -0,0 +1,4 @@
#! zsh
export HISTFILE=~/.zsh/zhistory
export HISTSIZE=50000
export SAVEHIST=$HISTSIZE

View file

@ -0,0 +1 @@
../../../../../../.zsh/../.homesick/repos/homeshick/homeshick.sh

View file

@ -0,0 +1 @@
../../../../../../.zsh/../.iterm2_shell_integration.zsh

View file

@ -0,0 +1,5 @@
#! zsh
setopt correct
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' menu select=2