-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
49 lines (37 loc) · 1.69 KB
/
.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
39
40
41
42
43
44
45
46
47
48
################# DO NOT MODIFY THIS FILE #######################
####### PLACE YOUR CONFIGS IN ~/.config/qzsh/zshrc FOLDER #######
#################################################################
# ========================================
# qzsh Configuration Loader
# ========================================
# This file is created by qzsh setup.
# Place all your .zshrc configurations / overrides in a single or multiple files under ~/.config/qzsh/zshrc/ folder
# Your original .zshrc is backed up at ~/.zshrc-backup-%y-%m-%d
# Load qzsh configurations
source "$HOME/.config/qzsh/qzshrc.zsh"
# ========================================
# Load User Configurations
# ========================================
# Any zshrc configurations under the folder ~/.config/qzsh/zshrc/ will override the default qzsh configs.
# Place all of your personal configurations over there
ZSH_CONFIGS_DIR="$HOME/.config/qzsh/zshrc"
if [ "$(ls -A $ZSH_CONFIGS_DIR)" ]; then
for file in "$ZSH_CONFIGS_DIR"/* "$ZSH_CONFIGS_DIR"/.*; do
# Exclude '.' and '..' from being sourced
if [ -f "$file" ]; then
source "$file"
fi
done
fi
# ========================================
# Source Oh My Zsh
# ========================================
# Source oh-my-zsh.sh so that any plugins added in ~/.config/qzsh/zshrc/* files also get loaded
source $ZSH/oh-my-zsh.sh
# ========================================
# Post Oh My Zsh Configuration
# ========================================
# Configurations that depend on oh-my-zsh plugins or must be loaded after oh-my-zsh.sh
# Source fzf.zsh, otherwise Ctrl+r is overwritten by ohmyzsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_OPS="--extended"