-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
58 lines (43 loc) · 2.5 KB
/
.zshrc
File metadata and controls
58 lines (43 loc) · 2.5 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
# An oh-my-zsh (https://ohmyz.sh) based ZSH configuration
export ZSH="$HOME/.oh-my-zsh"
# ZSH settings, which need to be specified before loading oh-my-zsh
# We store our custom ZSH config files in this dot directory
ZSH_CUSTOM="${HOME}/.zsh"
ZSH_THEME="powerlevel10k/powerlevel10k" # Theme to load on start (needs to be present in $ZSH_CUSTOM)
CASE_SENSITIVE="true" # Use case sensitive completion (default: false)
HIST_STAMPS="yyyy-mm-dd" # Enable history timestamps in ZSH
# Oh my ZSH enabled plugins
plugins=(brew fzf asdf terraform)
# Set some oh-my-zsh options
zstyle ':omz:update' mode reminder # Update mode for oh-my-zsh (one of disabled, auto or reminder)
zstyle ':omz:update' frequency 13 # Check/remind every x days
zstyle ':omz:plugins:brew' aliases false # disable automatic aliases for homebrew plugin
# Finally initialize Oh My ZSH
source $ZSH/oh-my-zsh.sh
# HACK: We need to rerun compinit, since the brew plugin is initialized after
# completion was already initialized
compinit
# User configuration (e.g. not managed by Oh my ZSH)
# The powerlevel10k scheme needs additional configuration sourced
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Source the default shell profile
source ~/.profile
# Configuration for ZSH history
export HISTSIZE=500000
export SAVEHIST=500000
setopt extended_history # Write the history file in the ":start:elapsed;command" format.
setopt inc_append_history # Write to the history file immediately, not when the shell exits.
setopt share_history # Share history between all sessions.
setopt hist_expire_dups_first # Expire duplicate entries first when trimming history.
setopt hist_ignore_dups # Don't record an entry that was just recorded again.
setopt hist_ignore_all_dups # Delete old recorded entry if new entry is a duplicate.
setopt hist_find_no_dups # Do not display a line previously found.
setopt hist_ignore_space # Don't record an entry starting with a space.
setopt hist_save_no_dups # Don't write duplicate entries in the history file.
setopt hist_reduce_blanks # Remove superfluous blanks before recording entry.
setopt hist_verify # Don't execute immediately upon history expansion.
setopt hist_beep # Beep when accessing nonexistent history.
# Other ZSH settings
setopt emacs # Use EMACS keybindings for input navigation
setopt extended_glob # Extended globbing behaviour