-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
executable file
·40 lines (31 loc) · 1.16 KB
/
deploy.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
#!/bin/sh
# TODO: Make a function which creates the simlink
# Because the actual system is not easily portable
set -e
SCRIPT_DIR="$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd )"
# For gVim (Vim with graphical interface)
ln -sf "$SCRIPT_DIR/vim/.gvimrc" ~/.gvimrc
# For tmux
ln -sf "$SCRIPT_DIR/tmux/.tmux.conf" ~/.tmux.conf
# Verify if .config directory exists
mkdir -p ~/.config
mkdir -p ~/.config/nvim/
mkdir -p ~/.config/alacritty/
mkdir -p ~/.config/kitty/
mkdir -p ~/.config/i3/
mkdir -p ~/.emacs.d/
# For NeoVim
ln -sf "$SCRIPT_DIR/neovim/init.lua" ~/.config/nvim/init.lua
# For Alacritty
ln -sf "$SCRIPT_DIR/alacritty/alacritty.toml" ~/.config/alacritty/alacritty.toml
# For Alacritty
ln -sf "$SCRIPT_DIR/kitty/kitty.conf" ~/.config/kitty/kitty.conf
# For i3wm
ln -sf "$SCRIPT_DIR/i3wm/config" ~/.config/i3/config
ln -sf "$SCRIPT_DIR/i3wm/.i3status.conf" ~/ # .config/i3/config
# For Emacs
ln -sf "$SCRIPT_DIR/emacs/rc.el" ~/.emacs.d/rc.el
ln -sf "$SCRIPT_DIR/emacs/init.el" ~/.emacs.d/init.el
ln -sf "$SCRIPT_DIR/emacs/custom.el" ~/.emacs.d/custom.el
ln -sf "$SCRIPT_DIR/emacs/org.el" ~/.emacs.d/org.el
ln -sf "$SCRIPT_DIR/emacs/org-style.css" ~/.emacs.d/org-style.css