-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·36 lines (36 loc) · 1.42 KB
/
install.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
#!/bin/bash
##########################################
# variables
##########################################
SCRIPTPATH=$(realpath "${BASH_SOURCE[0]}")
SCRIPTROOT="$(dirname $SCRIPTPATH)"
##########################################
# powershell
##########################################
mkdir -p ~/.config/powershell
ln -fsv $SCRIPTROOT/powershell/profile.ps1 ~/.config/powershell/profile.ps1
mkdir -p ~/.local/dotfiles/powershell
touch ~/.local/dotfiles/powershell/profile.ps1
##########################################
# vim
##########################################
ln -fsv $SCRIPTROOT/vim/.vimrc ~/.vimrc
##########################################
# tmux
##########################################
ln -fsv $SCRIPTROOT/tmux/.tmux.conf ~/.tmux.conf
mkdir -p ~/.local/dotfiles/tmux
touch ~/.local/dotfiles/tmux/tmux.conf
##########################################
# vscode
##########################################
mkdir -p ~/.config/Code/User
# ln -fsv $SCRIPTROOT/vscode/settings.json ~/.config/Code/User/settings.json
# ln -fsv $SCRIPTROOT/vscode/keybindings.json ~/.config/Code/User/keybindings.json
cp $SCRIPTROOT/vscode/settings.json ~/.config/Code/User/settings.json
cp $SCRIPTROOT/vscode/keybindings.json ~/.config/Code/User/keybindings.json
##########################################
# bash
##########################################
# ln -fsv $SCRIPTROOT/bash/bashrc ~/.bashrc
# ln -fsv $SCRIPTROOTWD/bash/bash_profile ~/.bash_profile