-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
74 lines (56 loc) · 2.43 KB
/
zshrc
File metadata and controls
74 lines (56 loc) · 2.43 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# load plugins
# Arch contains all of these under /usr/share/zsh/plugins
if [ -d "/usr/share/zsh/plugins/" ]; then
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
else
# Ubuntu contains two of them, we'll expect the 3rd under ~/dev/vendor
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /home/stephen/dev/vendor/zsh-history-substring-search/zsh-history-substring-search.zsh
fi
export COLORTERM=truecolor
# use starship for theming
eval "$(starship init zsh)"
# completion magic
# ----------------
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' # Case insensitive
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completions
# cycle through history using up and down arrows
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# aliases
if [ -n "/usr/bin/exa" ]; then
alias ls=exa
fi
alias no=ls
eval "$(zoxide init zsh)"
export GPG_TTY=$(tty)
# history settings
export HISTFILE=~/.local/zsh_history
export HISTSIZE=1000000
export SAVEHIST=$HISTSIZE
setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format.
setopt SHARE_HISTORY # Share history between all sessions.
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _match _correct _approximate _prefix
zstyle ':completion:*' format '%d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=** r:|=** l:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
zstyle ':completion:*' original false
zstyle :compinstall filename '/home/stephen/.zshrc'
fastfetch
autoload -Uz compinit
compinit
# End of lines added by compinstall
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# import zsh functions
for file in ~/.bin/zsh/*.zsh; do source "$file"; done