-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.80_plugins.zsh
executable file
·42 lines (33 loc) · 1.1 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
38
39
40
41
42
##### Plugin Manager #####
# Install Antidote
if [[ ! -d ${ZDOTDIR:-$HOME}/.antidote ]]; then
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
fi
# Allow loading some plugins for macOS only
is-macos() {
[[ $OSTYPE == darwin* ]]
}
# 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