-
Notifications
You must be signed in to change notification settings - Fork 1
/
.80_plugins.zsh
executable file
·37 lines (29 loc) · 1.01 KB
/
.80_plugins.zsh
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
##### Plugin Manager #####
# Install Antidote
if [[ ! -d ${ZDOTDIR:-~}/.antidote ]]; then
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
fi
# Load Antidote
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
antidote load ${ZDOTDIR:-$HOME}/.zsh_plugins.txt
##### Plugins Additional Code #####
# zsh-users/zsh-history-substring-search
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
##### Theme #####
# Load the theme
if [[ -d ~/Library/Fonts && "$(find ~/Library/Fonts -maxdepth 1 -follow -type f -name "*MesloLGS NF*")" == "" ]]; then
git clone https://github.com/romkatv/powerlevel10k-media.git --depth=1
cd powerlevel10k-media || return 1
cp *.ttf ~/Library/Fonts
cd ..
rm -rf powerlevel10k-media
fi
osascript <<- EOF
tell application "Terminal"
set ProfileNames to name of every settings set
repeat with ProfileName in ProfileNames
set font name of settings set ProfileName to "MesloLGS NF"
end repeat
end tell
EOF