-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
53 lines (48 loc) · 1.3 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
50
51
52
53
# Enable Homebrew.
if [[ $(uname -s) = Linux ]] && ! command -v brew >/dev/null; then
eval $(~/.linuxbrew/bin/brew shellenv)
fi
# Enable Starship.
eval "$(starship init zsh)"
# Customize zsh
setopt hist_ignore_all_dups hist_ignore_space noclobber pipefail share_history
autoload -U select-word-style
select-word-style bash
export HISTFILE=~/.zhistory
export HISTSIZE=10000
export SAVEHIST=10000
export REPORTTIME=1
export TIMEFMT='%J %U user %S system %P cpu %*E total %M MB'
# Customize vi mode
bindkey '^[^[' vi-cmd-mode
set -o vi
bindkey "^A" beginning-of-line
bindkey "^B" backward-char
bindkey "^D" delete-char-or-list
bindkey "^E" end-of-line
bindkey "^F" forward-char
bindkey "^K" kill-line
bindkey "^O" accept-line-and-down-history
bindkey "^R" history-incremental-search-backward
bindkey "^T" transpose-chars
bindkey "^W" backward-kill-word
bindkey "^Y" yank
bindkey "^[." insert-last-word
bindkey "^[^?" backward-kill-word
bindkey "^[^H" backward-kill-word
bindkey "^[b" backward-word
bindkey "^[f" forward-word
set +o vi
# Customize to your needs...
if which thefuck &>/dev/null; then
eval $(thefuck --alias)
fi
if [[ -r $(brew --prefix)/etc/profile.d/z.sh ]]; then
. $(brew --prefix)/etc/profile.d/z.sh
fi
PATH="$HOME/.cargo/bin:$PATH"
PATH="$HOME/bin:$PATH"
. ~/.exports
. ~/.extra
. ~/.aliases
. ~/.functions