-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
44 lines (34 loc) · 1 KB
/
Copy path.zshrc
File metadata and controls
44 lines (34 loc) · 1 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
#!/usr/bin/env zsh
# zmodload zsh/zprof
# zmodload zsh/datetime; zmodload zsh/parameter; typeset -F SECONDS
umask 022
export HISTSIZE=10000000
export SAVEHIST="$HISTSIZE"
export ZSH="$HOME/.oh-my-zsh"
ZSH_CUSTOM="$HOME/.config/shell"
ZSH_THEME="symbols"
plugins=(rust)
source "$ZSH/oh-my-zsh.sh"
declare -ra libs=(
"aliases"
"functions"
"fzf-git.sh"
"gh.function"
"keybindings.zsh"
"env_vars"
)
# Load aliases and functions
for lib in "${libs[@]}"; do
lib="$ZSH_CUSTOM/$lib"
test -f "$lib" && source "$lib"
done
autoload -z edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
# Disable colors in tab completion
zstyle ':completion:*' list-colors
zstyle ':completion:*:*:git:*' user-commands ${${(M)${(k)commands}:#git-*}/git-/}
test -f ~/.env && . ~/.env # if environment overwrite previous settings
test -f ~/.profile && . ~/.profile
# Source completions after .profile sets up PATH (e.g. ~/.cargo/bin)
test -f "$ZSH_CUSTOM/completions" && source "$ZSH_CUSTOM/completions"