-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
55 lines (40 loc) · 1.66 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
54
export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
export ZSH="$HOME/.oh-my-zsh"
export QLTY_INSTALL="$HOME/.qlty"
export RPROMPT='%t'
export PATH="$QLTY_INSTALL/bin:$PATH"
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"
# -------------------
# THEME
# -------------------
ZSH_THEME="robbyrussell"
# -------------------
# Options
# -------------------
zstyle ':omz:update' frequency 7
setopt EXTENDED_HISTORY # Write history in ':start:elapsed;command' format.
setopt INC_APPEND_HISTORY # Write to history immediately.
setopt SHARE_HISTORY # Share history between sessions.
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate events first.
setopt HIST_IGNORE_DUPS # Skip immediately repeated commands.
setopt HIST_IGNORE_ALL_DUPS # Remove older duplicates.
setopt HIST_FIND_NO_DUPS # Hide dupes when searching.
setopt HIST_IGNORE_SPACE # Skip commands that start with a space.
setopt HIST_SAVE_NO_DUPS # Don't write dupes to file.
setopt HIST_VERIFY # Confirm before executing from history.
setopt APPEND_HISTORY # Append instead of overwrite.
setopt HIST_NO_STORE # Don't log history commands (like `history`).
HIST_STAMPS="dd.mm.yyyy"
DISABLE_MAGIC_FUNCTIONS="true"
ENABLE_CORRECTION="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
# -------------------
# Plugins
# -------------------
plugins=(aliases z gitignore zsh-autosuggestions)
# Custom plugin path for completions
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
# -------------------
# Oh My Zsh
# -------------------
source $ZSH/oh-my-zsh.sh