1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- if [ -f ~/.zshrc.local ]; then
- source ~/.zshrc.local
- fi
- if [ -h ~/.antigen.zsh ]
- then
- save_aliases=$(alias -L)
- source ~/.antigen.zsh
-
- antigen use oh-my-zsh
-
- antigen bundle git
- antigen bundle heroku
- antigen bundle pip
- antigen bundle lein
- antigen bundle command-not-found
-
- antigen bundle zsh-users/zsh-syntax-highlighting
- antigen bundle zsh-users/zsh-autosuggestions
-
- antigen theme bureau
-
- antigen apply
- unalias -m '*'
- eval $save_aliases; unset save_aliases
- fi
- bindkey '^ ' autosuggest-accept
- HISTFILE=~/.histfile
- HISTSIZE=10000
- SAVEHIST=10000
- setopt -o sharehistory
- setopt HIST_IGNORE_DUPS
- setopt HIST_IGNORE_ALL_DUPS
- setopt appendhistory autocd extendedglob nomatch
- WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
- bindkey "^[OH" beginning-of-line
- bindkey "^[[H" beginning-of-line
- bindkey "^[OF" end-of-line
- bindkey "^[[F" end-of-line
- bindkey "^s" history-incremental-search-forward
- bindkey ";5C" forward-word
- bindkey ";5D" backward-word
- function cd {
- builtin cd "$@" && ls -F
- }
- function sl_func() {
-
-
- LEN=$(ls "$@" |wc -L)
- ls "$@" | rev | while read -r line
- do
- printf "%${LEN}.${LEN}s\\n" "$line" | sed 's/^\(\s\+\)\(\S\+\)/\2\1/'
- done
- }
- alias sl=sl_func
|