-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
22 lines (19 loc) · 794 Bytes
/
setup.sh
File metadata and controls
22 lines (19 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -euxo pipefail
shopt -s nullglob
umask 0077
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
echo ">>> Executed as: $(id)"
# Link configurations
mkdir -p ~/.config/{fish,nu} ~/.cargo/
ln -isv "$SCRIPT_DIR"/_/bat ~/.config/
ln -isv "$SCRIPT_DIR"/_/cargo/config.toml ~/.cargo/
ln -isv "$SCRIPT_DIR"/_/fish/* ~/.config/fish/
ln -isv "$SCRIPT_DIR"/_/git ~/.config/
ln -isv "$SCRIPT_DIR"/_/mise ~/.config/
ln -isv "$SCRIPT_DIR"/_/nushell/* ~/Library/Application\ Support/nushell/
ln -isv "$SCRIPT_DIR"/_/ripgrep ~/.config/
ln -isv "$SCRIPT_DIR"/_/starship/starship.toml ~/.config/
ln -isv "$SCRIPT_DIR"/_/vim/vimrc ~/.vimrc
ln -isv "$SCRIPT_DIR"/_/vscode/* ~/Library/Application\ Support/Code\ -\ Insiders/User/
ln -isv "$SCRIPT_DIR"/_/zellij ~/.config/