-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs.sh
executable file
·49 lines (39 loc) · 1.18 KB
/
configs.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
#! /bin/sh
set -e
mkdir -p ~/.config
mkdir -p ~/.config/environment.d
for conf in $PWD/environment/[0-9][0-9]-*.conf $PWD/environment/systemd-user-session.conf; do
ln -sf "$conf" ~/.config/environment.d/
done
case $(hostname) in
"slartibartfast"|"hoopyfrood"|"zaphod")
ln -sf "$PWD/environment/40B-intel.conf" ~/.config/environment.d/
;;
"Eddie")
ln -sf "$PWD/environment/40A-amd.conf" ~/.config/environment.d/
;;
*)
printf "Warning: unknown computer '%s', no specialised config installed\n" $(hostname)
;;
esac
#ln -sf $PWD/i3status-rs ~/.config/
#ln -sf $PWD/sway ~/.config/
#ln -sf $PWD/mako ~/.config/
#ln -sf $PWD/kanshi ~/.config/
#ln -sf $PWD/kitty ~/.config/
ln -sf $PWD/kak ~/.config/
ln -sf $PWD/kak-lsp ~/.config/
ln -sf $PWD/latexmk ~/.config/
ln -sf $PWD/zsh/zprofile ~/.zprofile
ln -sf $PWD/zsh/zshenv ~/.zshenv
ln -sf $PWD/zsh/zshrc ~/.zshrc
ln -sf $PWD/bash/bash_profile ~/.bash_profile
ln -sf $PWD/bash/bashrc ~/.bashrc
ln -sf $PWD/bash/bash_logout ~/.bash_logout
ln -sf $PWD/sh/profile ~/.profile
ln -sf $PWD/sh/aliases ~/.aliases
ln -sf $PWD/readline/inputrc ~/.inputrc
mkdir -p ~/.local/bin
for f in $PWD/bin/*; do
ln -sf "$f" ~/.local/bin/
done