-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
55 lines (42 loc) · 1.22 KB
/
zshrc
File metadata and controls
55 lines (42 loc) · 1.22 KB
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
55
# ZSH Profiling
[[ "$ZPROF" = true ]] && zmodload zsh/zprof
profzsh() {
shell=${1-$SHELL}
ZPROF=true $shell -i -c exit
}
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Theme
ZSH_THEME="agnoster2"
# Completion settings
HYPHEN_INSENSITIVE="true"
setopt auto_cd
setopt menu_complete
# History settings
HIST_STAMPS="dd/mm/yyyy"
HISTSIZE=1000
HISTSAVE=1000
# Plugins
plugins=(autoswitch_virtualenv zsh-autopair git git-flow dirhistory command-not-found colored-man-pages rust zsh-syntax-highlighting zsh-autosuggestions zsh-completions jq python pip fzf uv)
# User configuration
export PATH=".:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:$HOME/.local/bin"
export EDITOR='nvim'
# Oh-My-Zsh
source $ZSH/oh-my-zsh.sh
# Local config. Logins / Creds / Etc
[ -f ~/.zshlocal.zsh ] && source ~/.zshlocal.zsh
[ -f ~/.cargo/env ] && source ~/.cargo/env
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# cdhist
if type cdhist &>/dev/null; then
. <(cdhist -i)
fi
# Only refresh compinit once a day
## completion stuff
zstyle ':compinstall' filename '$HOME/.zshrc'
zcachedir="$HOME/.zcache"
[[ -d "$zcachedir" ]] || mkdir -p "$zcachedir"
autoload -Uz compinit
compinit
# ZSH Profiling
[[ "$ZPROF" = true ]] && zprof || return 0