-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·63 lines (53 loc) · 1.58 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·63 lines (53 loc) · 1.58 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#-------------------------------------------------------------------------------
# Copyright (C) 2015 Angel Terrones <angelterrones@gmail.com>
#-------------------------------------------------------------------------------
# install script
echo -e "Installing dotfiles..."
PWD=$(pwd)
# git
echo -e "Installing dotfiles: git"
mkdir -p ~/.config/git
ln -sfn $PWD/git/gitconfig ~/.config/git/config
# starfish
echo -e "Installing dotfiles: starfish"
ln -sfn $PWD/starship ~/.config/starship
# zsh
echo -e "Installing dotfiles: zsh"
ln -sfn $PWD/zsh ~/.config/zsh
ln -sfn $PWD/zsh/zshenv ~/.zshenv
ln -sfn $PWD/zsh/zshrc ~/.config/zsh/.zshrc
# tmux
echo -e "Installing dotfiles: tmux"
TMUX_FOLDER="$HOME/.config/tmux"
if [[ ! -d $TMUX_FOLDER ]]; then
git clone https://github.com/tmux-plugins/tpm tmux/plugins/tpm
ln -sfn $PWD/tmux/ $TMUX_FOLDER
$TMUX_FOLDER/plugins/tpm/scripts/install_plugins.sh
fi
# clangd
echo -e "Installing dotfiles: clangd"
if [[ $(uname) == "Darwin" ]]; then
ln -sfn $PWD/clangd ~/Library/Preferences/clangd
else
ln -sfn $PWD/clangd ~/.config/clangd
fi
# nvim
echo -e "Installing dotfiles: nvim (deleting old config)"
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim
# symlink the config
ln -sfn $PWD/nvim/ ~/.config/nvim
if [[ "$1" = "mpd" ]]; then
# mpd
echo -e "Installing dotfiles: mpd"
ln -sfn $PWD/mpd ~/.config/mpd
mkdir -p ~/.config/mpd/playlists
# ncmpcpp
echo -e "Installing dotfiles: ncmpcpp"
ln -sfn $PWD/ncmpcpp ~/.config/ncmpcpp
mkdir -p ~/.config/ncmpcpp/lyrics
fi
echo -e "Done"