-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·41 lines (36 loc) · 1.57 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
#!/bin/bash
export XDG_CONFIG_HOME="$HOME"/.config
#
# create directories
#
# mkdir -p "$XDG_CONFIG_HOME"/alacritty
mkdir -p "$XDG_CONFIG_HOME"/tmux
mkdir -p "$XDG_CONFIG_HOME"/starship
mkdir -p "$XDG_CONFIG_HOME"/lazygit
#
# addons
#
# [ ! -d "$XDG_CONFIG_HOME"/alacritty/themes ] && git clone https://github.com/alacritty/alacritty-theme "$XDG_CONFIG_HOME"/alacritty/themes
# mc
TMPDIR=/tmp/mc-onedark
[ -d "$TMPDIR" ] && rm -rf "$TMPDIR"
git clone https://github.com/DeadNews/mc-onedark.git ${TMPDIR}
cp -r ${TMPDIR}/skins "$HOME"/.local/share/mc
#cp ${TMPDIR}/config/*ini "$XDG_CONFIG_HOME"/mc/
#
# symbolic links
#
ln -sf "$PWD/config/misc/markdownlint-cli2.yaml" "$HOME"/.markdownlint-cli2.yaml
ln -sf "$PWD/config/zsh/zshrc" "$HOME"/.zshrc
ln -sf "$PWD/config/zsh/zprofile" "$HOME"/.zprofile
# ln -sf "$PWD/config/bash/.bash_profile" "$HOME"/.bash_profile
# ln -sf "$PWD/config/bash/.bashrc" "$HOME"/.bashrc
ln -sf "$PWD/config/git/.gitconfig" "$HOME"/.gitconfig
ln -sf "$PWD/config/lazygit/config.yml" "$XDG_CONFIG_HOME"/lazygit/config.yml
ln -sf "$PWD/config/clang/.clang-format" "$HOME"/.clang-format
# ln -sf "$PWD/config/alacritty/alacritty.toml" "$XDG_CONFIG_HOME"/alacritty/alacritty.toml
ln -sf "$PWD/config/tmux/tmux.conf" "$XDG_CONFIG_HOME"/tmux/tmux.conf
ln -sf "$PWD/config/starship/starship.toml" "$XDG_CONFIG_HOME"/starship.toml
[ ! -L "$XDG_CONFIG_HOME"/kitty ] && ln -sf "$PWD/config/kitty" "$XDG_CONFIG_HOME"/kitty
[ ! -L "$XDG_CONFIG_HOME"/nvim ] && ln -sf "$PWD/config/nvim" "$XDG_CONFIG_HOME"/nvim
[ ! -L "$XDG_CONFIG_HOME"/mc ] && ln -sf "$PWD/config/mc" "$XDG_CONFIG_HOME"/mc