-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.sh
executable file
·66 lines (49 loc) · 1.08 KB
/
setup.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
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
#!/bin/bash
set -e
current="$PWD"
link() {
local path="$current/$1"
local dest="$2"
mkdir -p "$(dirname "$dest")"
if [ -L "$dest" ]; then
rm "$dest"
fi
echo "$dest -> $path"
ln -fs "$path" "$dest"
}
# Terminals
link terminal/kitty.conf ~/.config/kitty/kitty.conf
link terminal/wezterm.lua ~/.wezterm.lua
if [ -d ~/Library ]; then
link terminal/ghostty ~/Library/Application\ Support/com.mitchellh.ghostty/config
fi
# Vim
link vim ~/.vim
link vim/vimrc ~/.vimrc
link editorconfig ~/.editorconfig
# Generic shell
link shell ~/.shell
link bin ~/.local/df-bin
link shell/env ~/.zshenv
link shell/env ~/.bashenv
# Bash
link bash/bash_profile ~/.bash_profile
# Zsh
link zsh ~/.zsh
link zsh/zshrc ~/.zshrc
# Tmux
link tmux/tmux.conf ~/.tmux.conf
# Git
link git/gitconfig ~/.gitconfig
link git/global-gitignore ~/.global-gitignore
link git/jjconfig.toml ~/.jjconfig.toml
# SSH
link ssh/config ~/.ssh/config
# Pod
link pod/script.yaml ~/.config/pod/script.yaml
# No login motd
touch ~/.hushlogin
link dircolors ~/.dircolors
# Common directories
mkdir -p ~/Projects
mkdir -p ~/tmp