-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·39 lines (29 loc) · 1.32 KB
/
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
#!/usr/bin/env bash
. env.sh
set -e
echoc 31 "Environment setup ..."
if [ "$USER" = "root" ]; then
HOME="/root"
fi
mkdir "$HOME"/{workspace,dev,repos,tmp,sync} >/dev/null 2>&1 || true
mkdir -p "$HOME"/.local/share/{icons,fonts} >/dev/null 2>&1 || true
install_link "$ENV_HOME/dotfiles/profile" "$HOME/.profile"
install_link "$ENV_HOME/dotfiles/local/share/icons" "$HOME/.local/share/icons"
install_link "$ENV_HOME/dotfiles/local/share/fonts" "$HOME/.local/share/fonts"
install_link "$ENV_HOME/dotfiles/profile" "$HOME/.profile"
install_link "$ENV_HOME/dotfiles/zshrc" "$HOME/.zshrc"
install_link "$ENV_HOME/dotfiles/p10k.zsh" "$HOME/.p10k.zsh"
install_link "$ENV_HOME/dotfiles/bashrc" "$HOME/.bashrc"
install_link "$ENV_HOME/dotfiles/gitconfig" "$HOME/.gitconfig"
chattr +i "$HOME/.config/user-dirs.dirs" || true
install_link "$ENV_HOME/dotfiles/config/user-dirs.dirs" "$HOME/.config/user-dirs.dirs"
chattr -i "$HOME/.config/user-dirs.dirs" || true
install_link "$ENV_HOME/dotfiles/config/user-dirs.locale" "$HOME/.config/user-dirs.locale"
install_link "$ENV_HOME/dotfiles/config/vscode/settings.json" "$HOME/.config/Code/User/settings.json" || true
DOTFILES="$ENV_HOME/dotfiles"
for SRC in "$DOTFILES"/config/*; do
DEST="$HOME/.config/$(basename "$SRC")"
install_link "$SRC" "$DEST"
done
. scripts/setup-oh-my-zsh.sh
setup-folder-icons