-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
50 lines (42 loc) · 1.09 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
eval "$(sheldon source)"
setopt hist_ignore_all_dups
setopt auto_pushd
setopt no_beep
setopt auto_param_keys
setopt mark_dirs
setopt no_auto_remove_slash
setopt magic_equal_subst
setopt inc_append_history
setopt hist_verify
setopt extended_history
setopt hist_no_store
setopt print_eight_bit
setopt share_history
bindkey '^J' self-insert
bindkey '^I' expand-or-complete-prefix
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
bindkey '^[[3~' delete-char
bindkey '^[[6~' autosuggest-accept
HISTSIZE=100000
SAVEHIST=100000
HISTFILE=~/.zsh_history
zstyle ':completion:*' menu select=2
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}'
function mkcd() {
mkdir -p -- "$1" && cd -P -- "$1"
}
function select-history() {
BUFFER=$(history -n -r 1 | fzf --tiebreak=index --query "$LBUFFER" --height 50% --reverse)
CURSOR=$#BUFFER
zle reset-prompt
}
zle -N select-history
bindkey '^r' select-history
alias la='exa -al --icons'
alias ls='exa'
alias lt='exa -T -L 3 --icons'
alias clip='copyq copy -'
alias cat='bat'