Initial commit, modular zsh config easy to extend with extra behaviours
This commit is contained in:
commit
df6164e3aa
22 changed files with 154 additions and 0 deletions
26
home/.zsh/interactive/_zplug
Normal file
26
home/.zsh/interactive/_zplug
Normal 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
|
17
home/.zsh/interactive/aliases
Normal file
17
home/.zsh/interactive/aliases
Normal 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
|
12
home/.zsh/interactive/bindings
Normal file
12
home/.zsh/interactive/bindings
Normal 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
|
3
home/.zsh/interactive/fzf
Normal file
3
home/.zsh/interactive/fzf
Normal file
|
@ -0,0 +1,3 @@
|
|||
#! zsh
|
||||
export FZF_CTRL_R_OPTS="--sort"
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
4
home/.zsh/interactive/history
Normal file
4
home/.zsh/interactive/history
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! zsh
|
||||
export HISTFILE=~/.zsh/zhistory
|
||||
export HISTSIZE=50000
|
||||
export SAVEHIST=$HISTSIZE
|
1
home/.zsh/interactive/homeshick
Symbolic link
1
home/.zsh/interactive/homeshick
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../../.zsh/../.homesick/repos/homeshick/homeshick.sh
|
1
home/.zsh/interactive/iterm2
Symbolic link
1
home/.zsh/interactive/iterm2
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../../.zsh/../.iterm2_shell_integration.zsh
|
5
home/.zsh/interactive/options
Normal file
5
home/.zsh/interactive/options
Normal file
|
@ -0,0 +1,5 @@
|
|||
#! zsh
|
||||
setopt correct
|
||||
|
||||
zstyle ':completion:*' completer _expand _complete _correct _approximate
|
||||
zstyle ':completion:*' menu select=2
|
Loading…
Add table
Add a link
Reference in a new issue