forked from ellisonleao/nvim-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextras-install.sh
executable file
·65 lines (65 loc) · 1.55 KB
/
extras-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
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
64
65
#!/usr/bin/bash
. xdg.sh
# yes it does better here
git submodule update --init --recursive
install() {
if ../yes-no.sh "install ${1} config"; then
mkdir -p "$XDG_CONFIG_HOME/${1}"
cp -r "$XDG_CONFIG_HOME/${1}" ~/.mess
cp -r "${1}" "$XDG_CONFIG_HOME"
fi
}
# install some user file backups
pushd extras-backup || exit
#$XDG
mkdir -p ~/.mess
install "nano"
install "rofi"
install "neofetch"
install "nvim"
if ../yes-no.sh "install dwm window manager"; then
cp ~/bin/dwm ~/.mess
cp ~/bin/dmenu ~/.mess
cp ~/bin/stest ~/.mess
cp ~/bin/st ~/.mess
cp ~/bin/slstatus ~/.mess
cp ~/startwm.sh ~/.mess
cp startwm.sh ~
pushd ~/dwm || exit
rm config.h
# now it won't keep old without patches
make install
# best launch method
echo "Delete ~/startwm.sh to go back to old window manager."
echo "Edit it to add in more dwm auto-starts."
echo "This does not affect the local login, just XRDP sessions."
# dmenu and st terminal also to ~/bin
cd ../dmenu || exit
make install
cd ../st || exit
make install
cd ../slstatus || exit
make install
popd || exit
# install nerd font used
echo "Installing nerd font."
cp -r JetBrainsMono ~/.local/share/fonts
fc-cache -rv >/dev/null
fi
if ../yes-no.sh "install bash config"; then
cp ~/.bashrc ~/.mess
cp .bashrc ~
fi
if ../yes-no.sh "install starship config"; then
cp "$XDG_CONFIG_HOME/starship.toml" ~/.mess
cp starship.toml "$XDG_CONFIG_HOME"
fi
if ../yes-no.sh "install tmux config"; then
rm -rf ~/.mess/.tmux
cp -r ~/.tmux ~/.mess
rm -rf ~/.tmux
cp -r .tmux ~
cp ~/.tmux.conf ~/.mess
cp .tmux.conf ~
fi
popd || exit