-
Notifications
You must be signed in to change notification settings - Fork 2
/
symlink.sh
executable file
·35 lines (25 loc) · 903 Bytes
/
symlink.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
#!/bin/sh
# ZSH CONFIGS
ln -sf ~/.dotfiles/zsh/.zshrc "$HOME"
# BASH CONFIGS
ln -sf ~/.dotfiles/bash/.bashrc "$HOME"
# ALIASES
ln -sf ~/.dotfiles/.aliasrc "$HOME"
# GIT CONFIGS
ln -sf ~/.dotfiles/.gitconfig "$HOME"
# TMUX CONFIGS
ln -sf ~/.dotfiles/tmux/.tmux.conf "$HOME"
# VIM CONFIGS
ln -sf ~/.dotfiles/vim/.vimrc "$HOME"
find ~/.dotfiles -maxdepth 1 -type d \
| grep -Ev '.dotfiles$|ssh|.git|handy-scripts|nvim-cp|tmux|fonts|vim|ansible|zsh|bash|vscode|nano' \
| xargs -I {} sh -c 'ln -sf {} ~/.config/'
# NVIM CONFIG
ln -sf ~/.dotfiles/nvim ~/.config/
# VSCODE CONFIGS
ln -sf ~/.dotfiles/vscode/snippets ~/.config/Code/User/
ln -sf ~/.dotfiles/vscode/settings.json ~/.config/Code/User/
ln -sf ~/.dotfiles/vscode/keybindings.json ~/.config/Code/User/
# SHORTHAND FOR SYMLINK AND UNLINK
ln -sf ~/.dotfiles/symlink.sh ~/.local/bin/slnk
ln -sf ~/.dotfiles/unlink.sh ~/.local/bin/ulnk