-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
110 lines (80 loc) · 5.41 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
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ ║
# ║ ________ ________ ___ ___ _______ ___ ___ ║
# ║ |\_____ \|\ ____\|\ \|\ \|\ ___ \ |\ \ |\ \ ║
# ║ \|___/ /\ \ \___|\ \ \\\ \ \ __/|\ \ \ \ \ \ ║
# ║ / / /\ \_____ \ \ __ \ \ \_|/_\ \ \ \ \ \ ║
# ║ / /_/__\|____|\ \ \ \ \ \ \ \_|\ \ \ \____\ \ \____ ║
# ║ |\________\____\_\ \ \__\ \__\ \_______\ \_______\ \_______\ ║
# ║ \|_______|\_________\|__|\|__|\|_______|\|_______|\|_______| ║
# ║ \|_________| ║
# ║ ║
# ║ ║
# ╚════════════════════════════════════════════════════════════════════════════╝
# for i in $(seq 1 10); do /usr/bin/time /bin/zsh -i -c exit; done;
# zinit times -m / -ms
### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
print -P "%F{160}▓▒░ The clone has failed.%f%b"
fi
source "$HOME/.zinit/bin/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
### End of Zinit's installer chunk
# ╔═══════════════════════════════════════════════════════════════════════════╗
# ║ - PLUGINS - ║
# ╚═══════════════════════════════════════════════════════════════════════════╝
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh' atload"
PURE_PROMPT_SYMBOL=▲
PURE_PROMPT_SYMBOL_COLOR=magenta
PURE_PROMPT_PATH_FORMATTING=%c/"
zinit light dfurnes/purer
zinit ice wait lucid atload"
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZSH_HIGHLIGHT_STYLES[path]=none
ZSH_HIGHLIGHT_STYLES[autodirectory]=none"
zinit light zsh-users/zsh-syntax-highlighting
zinit ice wait lucid atload"!_zsh_autosuggest_start"
zinit light zsh-users/zsh-autosuggestions
zinit ice wait lucid blockf
zinit light zsh-users/zsh-completions
zinit ice wait lucid
zinit light agkozak/zsh-z
zinit ice wait lucid
zinit light lukechilds/zsh-nvm
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ - SETTINGS - ║
# ╚════════════════════════════════════════════════════════════════════════════╝
export EDITOR='subl -w'
HISTSIZE=8000
SAVEHIST=10000
setopt EXTENDED_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_EXPIRE_DUPS_FIRST
setopt autocd
setopt autopushd
setopt correct
setopt correct_all
NVM_LAZY_LOAD=true
export _Z_DATA=~/.config/z/.z
export PYTHONSTARTUP=~/.config/python/.pythonrc
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="/opt/homebrew/opt/ssh-copy-id/bin:$PATH"
# ╔═══════════════════════════════════════════════════════════════════════════╗
# ║ - ALIASES - ║
# ╚═══════════════════════════════════════════════════════════════════════════╝
alias zshc="$EDITOR ~/.config/zsh/.zshrc"
alias ls="exa"
alias ms="brew services start mongodb-community"
alias mst="brew services stop mongodb-community"
alias bapps="ls /Applications > ~/.dots/apps.txt"
alias bbrew="brew bundle dump; mv ~/brewfile ~/.dots/brewfile"
alias bnpm="npm list -g --depth 0 > npmlist.txt; mv ~/npmlist.txt ~/.dots/npmlist.txt"
# alias bpip="pip3 list > piplist.txt; mv ~/piplist.txt ~/.dots/piplist.txt"
alias bvscode="code --list-extensions > ~/.dots/vscode/extensions.txt"
alias showdots="defaults write com.apple.finder AppleShowAllFiles true ; killall Finder"
alias hidedots="defaults write com.apple.finder AppleShowAllFiles false ; killall Finder"