-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathlink.sh
More file actions
executable file
·46 lines (38 loc) · 1.02 KB
/
link.sh
File metadata and controls
executable file
·46 lines (38 loc) · 1.02 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
#!/bin/bash
function link {
src="$HOME/.dotfiles/$1"
dst="$2"
ln -sfv "$src" "$dst"
}
function env_setup {
mkdir -p ~/.config
#git
link git/gitconfig ~/.gitconfig
link git/githelpers ~/.githelpers
link git/gitignore ~/.gitignore
mkdir -p ~/.config/lazygit
link git/lazygit/config.yml ~/.config/lazygit/
mkdir -p ~/.config/jj
link git/jujutsu/jj.toml ~/.config/jj/config.toml
mkdir -p ~/.config/jjui
link git/jujutsu/jjui.toml ~/.config/jjui/config.toml
# neovim
mkdir -p ~/.config
mkdir -p ~/.local/share/nvim
link nvim ~/.config/
# tmux
link tmux/tmux.conf ~/.tmux.conf
# zsh
link zsh/zshrc.zsh ~/.zshrc
link zsh/zprofile.zsh ~/.zprofile
link zsh/zshenv.zsh ~/.zshenv
link zsh/starship.toml ~/.config
# opencode
mkdir -p ~/.config/opencode
link opencode/opencode.jsonc ~/.config/opencode/
link opencode/tui.jsonc ~/.config/opencode/
link opencode/AGENTS.md ~/.config/opencode/
link opencode/skills ~/.config/opencode/
link opencode/themes ~/.config/opencode/
}
env_setup