-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·105 lines (82 loc) · 2.63 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·105 lines (82 loc) · 2.63 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
git pull
# Mac-specific
# Mac-specific
# Mac-specific
if [ "$(uname -s)" = "Darwin" ] && ! command -v brew &>/dev/null; then
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Bash
if [ "$(command -v bash)" != "/opt/homebrew/bin/bash" ]; then
brew install bash
echo /opt/homebrew/bin/bash | sudo tee -a /etc/shells
fi
chsh -s /opt/homebrew/bin/bash
fi
# TODO: convert into a loop via an array
# TODO: silent ln failures due to file already existing
# Symlinks
# Symlinks
# Symlinks
# NOTE: -f - remove existing destination files
# NOTE: -i - interactive prompt whether to remove destinations
# NOTE: -s - make symlinks instead of hard links
# Alacritty
rm -rf ~/.config/alacritty
ln -fs ~/dev/dotfiles/alacritty ~/.config
# Bash
rm ~/.bashrc
rm ~/.bash_aliases
rm ~/.gitignore
ln -fs ~/dev/dotfiles/bash/.bashrc ~
ln -fs ~/dev/dotfiles/bash/.bash_aliases ~
ln -fs ~/dev/dotfiles/bash/.gitignore ~
# Fonts
if command -v apt &>/dev/null || command -v dnf &>/dev/null; then
mkdir -p ~/.local/share/fonts
ln -fs ~/dev/dotfiles/fontpatcher/DankMono-Italic.ttf ~/.local/share/fonts
ln -fs ~/dev/dotfiles/fontpatcher/DankMono-Regular.ttf ~/.local/share/fonts
ln -fs ~/dev/dotfiles/fontpatcher/DankMonoNerdFont-Italic.ttf ~/.local/share/fonts
ln -fs ~/dev/dotfiles/fontpatcher/DankMonoNerdFont-Regular.ttf ~/.local/share/fonts
else
mkdir -p ~/Library/Fonts
cp ~/dev/dotfiles/fontpatcher/DankMono-Italic.ttf ~/Library/Fonts
cp ~/dev/dotfiles/fontpatcher/DankMono-Regular.ttf ~/Library/Fonts
cp ~/dev/dotfiles/fontpatcher/DankMonoNerdFont-Italic.ttf ~/Library/Fonts
cp ~/dev/dotfiles/fontpatcher/DankMonoNerdFont-Regular.ttf ~/Library/Fonts
fi
# Hammerspoon
if [ "$(uname -s)" = "Darwin" ]; then
rm -rf ~/.hammerspoon
mkdir -p ~/.hammerspoon
ln -fs ~/dev/dotfiles/hammerspoon/init.lua ~/.hammerspoon
fi
# Konsole
if command -v dnf &>/dev/null; then
rm -rf ~/.local/share/konsole
mkdir -p ~/.local/share/konsole
ln -fs ~/dev/dotfiles/konsole/zenbones_dark.colorscheme ~/.local/share/konsole
fi
# Nvim
rm -rf ~/.config/nvim
ln -fs ~/dev/dotfiles/nvim ~/.config
# TODO: Terminal
# if [ "$(uname -s)" = "Darwin" ]; then
# fi
# Vim
rm ~/.vimrc
ln -fs ~/dev/dotfiles/vim/.vimrc ~
# Zellij
rm -rf ~/.config/zellij
ln -fs ~/dev/dotfiles/zellij ~/.config
# Additional Installs
# Additional Installs
# Additional Installs
chmod +x ./cli/cli-tool-install.sh
./cli/cli-tool-install.sh --yes -y --assume-yes
source ~/.bashrc
# Configurations
# Configurations
# Configurations
chmod +x ./git-config.sh
./git-config.sh