-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
40 lines (32 loc) · 973 Bytes
/
install.sh
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
#!/usr/bin/env bash
set -ex
# Ensure XDG config directory is present
mkdir -p ~/.config
# Check for a brew install, and do the
# base brew package set
container_brew_path="/home/linuxbrew/.linuxbrew/bin/brew"
if [ -z "$(which brew)"]; then
if [ -f "$container_brew_path" ]; then
eval "$($container_brew_path shellenv)"
fi
fi
if [ -n "$(which brew)" ]; then
cp Brewfile ~/.Brewfile
brew bundle --global
fi
# install starship for that statusline bling
# execute after brew, as it's probably installing starship :)
if [ -n "$(which starship)" ]; then
echo 'eval "$(starship init bash)"' >>~/.profile
fi
# install zoxide shell actions
if [ -n "$(which zoxide)" ]; then
echo 'eval "$(zoxide init bash)"' >>~/.profile
fi
# Copy editor configurations
cp -R .config/helix ~/.config/
# Install LazyVim:
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
# Copy $HOMEDIR-level files necessary for runtime
cp gitconfig ~/.gitconfig