-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
38 lines (30 loc) · 1017 Bytes
/
.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
#!/bin/sh
export ZDOTDIR=$HOME/.config/zsh
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zshhistory
setopt append_history # Allow multiple terminal sessions to all append to one zsh command history
# Custom Variables
EDITOR=vim
zle_highlight=('paste:none')
setopt noflowcontrol #disable ctrl+s to freeze terminal
setopt auto_cd nomatch # If you type foo, and it isn't a command, and it is a directory in your cdpath, go there
# Basic auto/tab complete:
autoload -Uz compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' #case insensitive
zmodload zsh/complist
_comp_options+=(globdots) # Include hidden files.
# Enable colors
autoload -Uz colors && colors
# Useful Functions
source "$ZDOTDIR/zsh-functions"
# Normal files to source
zsh_add_file "zsh-aliases"
zsh_add_file "zsh-prompt"
zsh_add_file "zsh-keybindings"
# Plugins
zsh_add_plugin "zsh-users/zsh-autosuggestions"
zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
compinit