-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.zsh
More file actions
executable file
·53 lines (37 loc) · 1.15 KB
/
setup.zsh
File metadata and controls
executable file
·53 lines (37 loc) · 1.15 KB
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
#!/usr/bin/env zsh
set -e
ROOT=${0:a:h}
echo "### Syncing $ROOT/Brewfile\n"
# Install packages
brew bundle --file $ROOT/Brewfile
# ZSH install
echo "\n### Updating oh-my-zsh plugins\n"
if ! [[ -d ~/.oh-my-zsh ]]; then
RUNZSH=no sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
OMZ_PLUGINS_DIR=~/.oh-my-zsh/custom/plugins
OMZ_THEMES_DIR=~/.oh-my-zsh/custom/themes
if ! [[ -d $OMZ_THEMES_DIR/powerlevel10k ]]; then
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $OMZ_THEMES_DIR/powerlevel10k
fi
plugins=(
zsh-syntax-highlighting zsh-users/zsh-syntax-highlighting
op sirhc/op.plugin.zsh
fzf-tab Aloxaf/fzf-tab
)
echo "\n### Updating zsh plugins\n"
for name gh in $plugins; do
plugin_dir=$OMZ_PLUGINS_DIR/$name
if ! [[ -d $plugin_dir ]]; then
git clone --depth=1 https://github.com/$gh $plugin_dir
fi
done
# tmux - grab tpm!
echo "\n### Updating asdf plugins\n"
# asdf
asdf plugin add direnv && asdf install direnv latest && asdf set --home direnv latest
echo "\n### Placing dotfiles\n"
# Place actual dotfiles
for f in `ls $ROOT/dotfiles`; do
ln -vsfn $ROOT/dotfiles/$f ~/.$f
done