blob: e837066c6ca311d4a31cb6d56827b43a3fc51e63 (
plain)
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
|
#!/bin/sh
set -ex
CONFIG_DIR=${HOME}/config
ln -sf ${CONFIG_DIR}/bashrc ${HOME}/.bashrc
ln -sfT ${CONFIG_DIR}/vim ${HOME}/.vim
ln -sf ${CONFIG_DIR}/vimrc ${HOME}/.vimrc
ln -sf ${CONFIG_DIR}/inputrc ${HOME}/.inputrc
ln -sf ${CONFIG_DIR}/screenrc ${HOME}/.screenrc
mkdir -p ${HOME}/.config/git/template
ln -sf ${CONFIG_DIR}/git/gitconfig ${HOME}/.config/git/config
ln -sfT ${CONFIG_DIR}/git/hooks ${HOME}/.config/git/template/hooks
mkdir -p ${HOME}/.mutt
ln -sf ${CONFIG_DIR}/muttrc ${HOME}/.mutt/muttrc
ln -sf ${CONFIG_DIR}/ripgreprc ${HOME}/.config/ripgreprc
ln -sf ${CONFIG_DIR}/quiltrc ${HOME}/.quiltrc
mkdir -p ${HOME}/.config/mpv/scripts
ln -sf ${CONFIG_DIR}/mpv/mpv.conf ${HOME}/.config/mpv/mpv.conf
ln -sf ${CONFIG_DIR}/mpv/xscreensaver.lua ${HOME}/.config/mpv/scripts/xscreensaver.lua
mkdir -p ${HOME}/.local/share/tig
mkdir -p ${HOME}/.local/bin ${HOME}/.config/alacritty
ln -sf ${CONFIG_DIR}/alacritty/open_url.sh ${HOME}/.local/bin/open_url.sh
ln -sf ${CONFIG_DIR}/alacritty/alacritty.toml ${HOME}/.config/alacritty/alacritty.toml
mkdir -p ${HOME}/.config/lintian
ln -sf ${CONFIG_DIR}/debian/lintianrc ${HOME}/.config/lintian/lintianrc
ln -sf ${CONFIG_DIR}/debian/gbp.conf ${HOME}/.gbp.conf
ln -sf ${CONFIG_DIR}/debian/devscripts ${HOME}/.devscripts
mkdir -p ${HOME}/.config/gtk-3.0
ln -sf ${CONFIG_DIR}/gtk-3.0-settings.ini ${HOME}/.config/gtk-3.0/settings.ini
ln -sf ${CONFIG_DIR}/mimeapps.list ${HOME}/.config/mimeapps.list
for profile in ${HOME}/.mozilla/firefox/*.default ${HOME}/.mozilla/firefox/*.default-release; do
[ ! -d "$profile" ] && continue
mkdir -p "$profile/chrome"
ln -sf ${CONFIG_DIR}/firefox/user.js "$profile/user.js"
# userChrome.css needs to be copied, as sandbox can't resolve symlink
cp ${CONFIG_DIR}/firefox/userChrome.css "$profile/chrome/userChrome.css"
done
|