123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- source ~/.zshrc.local
- HISTFILE=~/.histfile
- HISTSIZE=10000
- SAVEHIST=10000
- setopt -o sharehistory
- setopt HIST_IGNORE_DUPS
- setopt HIST_IGNORE_ALL_DUPS
- setopt appendhistory autocd extendedglob nomatch
- bindkey -e
- zstyle :compinstall filename '/home/josh/.zshrc'
- autoload -Uz compinit
- compinit -u
- WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
- alias l='\ls --color=auto'
- alias ls='ls --color=auto'
- alias la='ls -a --color=auto'
- alias lsa='ls -a --color=auto'
- alias lls='ls -lh --color=auto'
- alias ll='ls -lh --color=auto'
- export VISUAL=vim
- bindkey "^[OH" beginning-of-line
- bindkey "^[OF" end-of-line
- bindkey ";5C" forward-word
- bindkey ";5D" backward-word
- alias :q='exit'
- if hash fuck 2>/dev/null; then
- eval $(thefuck --alias)
- fi
- alias ts='date +%y-%m-%d'
- alias emacs='emacs -nw'
- alias latest='ls -t | head -n 1'
- bindkey -v
- export KEYTIMEOUT=1
- bindkey '^P' up-history
- bindkey '^N' down-history
- bindkey '^?' backward-delete-char
- bindkey '^h' backward-delete-char
- bindkey '^w' backward-kill-word
- bindkey '^r' history-incremental-search-backward
- function zle-line-init zle-keymap-select {
- VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"
- RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"
- zle reset-prompt
- }
- function zle-line-finish {
- VIM_PROMPT=""
- RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"
- zle reset-prompt
- }
- RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"
- zle -N zle-line-init
- zle -N zle-keymap-select
- if [ ! $ZSH_CUSTOM ]
- then
-
- source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-
- stty -ixon
- fi
|