This repository has been archived by the owner on May 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
129 lines (104 loc) · 3.56 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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#----------------------------------------||-----------------------------------#
# _ _ _ ___ __ || #
# | | | | | | |__ \/_ | || .zshrc file, this should be #
# | | ___| | ___| | __ ) || | || contained inside: #
# _ | |/ _ \ |/ _ \ |/ / / / | | || $HOME #
# | |__| | __/ | __/ < / /_ | | || #
# \____/ \___|_|\___|_|\_\____||_| || #
#________________________________________||___________________________________#
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/usr/sbin:$HOME/.gem/ruby/2.7.0/bin:$HOME/.local/bin:$PATH
# Display for wsl2
export DISPLAY=$(grep -oP "(?<=nameserver ).+" /etc/resolv.conf):0
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Would you like to use another custom folder than $ZSH/custom?
ZSH_CUSTOM=$HOME/.config/zsh/custom
# Path to your zsh_custom file
ZSH_CUSTOM_INDEX="$ZSH_CUSTOM/zsh_custom"
# Set name of the theme to load
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"
# Remove Username from prompt in agnoster
DEFAULT_USER=jerome
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="false"
# Use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="false"
# Disable bi-weekly auto-update checks.
DISABLE_AUTO_UPDATE="false"
# Automatically update without prompting.
DISABLE_UPDATE_PROMPT="true"
# How often to auto-update (in days).
UPDATE_ZSH_DAYS=5
# If pasting URLs and other text is messed up turn to true.
DISABLE_MAGIC_FUNCTIONS=false
# Colors in ls.
DISABLE_LS_COLORS="false"
# Auto-setting terminal title.
DISABLE_AUTO_TITLE="false"
# Command auto-correction.
ENABLE_CORRECTION="false"
# Display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="false"
# Do not register some commands in history
HISTORY_IGNORE="(ls|la|l|cd|pwd|exit)"
# Command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
HIST_STAMPS="dd/mm/yyyy"
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Add wisely, as too many plugins slow down shell startup.
plugins=(
adb
alias-finder
autojump
battery
colored-man-pages
colorize
command-not-found
extract
fzf
git
gitfast
gnu-utils
history-substring-search
jsontools
man
node
npm
pip
sudo
svn-fast-info
systemd
vscode
web-search
z
zsh-autosuggestions
zsh-completions
zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
autoload -U compinit && compinit
# Load user defined custom aliases, options and plugins
source $ZSH_CUSTOM_INDEX
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Launch genie bottle (WSL)
# if [[ ! -v INSIDE_GENIE ]]; then
# read "yn? * Not inside the genie bottle; enter it? "
# echo
# if [[ $yn == "y" ]]; then
# echo "Starting genie:"
# exec /usr/bin/genie -s
# fi
# fi