-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink_dotfiles.sh
64 lines (51 loc) · 2.58 KB
/
link_dotfiles.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
#!/usr/bin/env bash
# shellcheck disable=SC2086
echo "Use one of the following arguments: [local, narval, home]"
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
ln -svf ${SCRIPT_DIR}/linux/bash_aliases ~/.bash_aliases
if [ "$1" = "local" ];
then
ln -svf ${SCRIPT_DIR}/linux/bashrc ~/.bashrc
ln -svf ${SCRIPT_DIR}/linux/ssh-config ~/.ssh/config
ln -svf ${SCRIPT_DIR}/linux/Xmodmap ~/.Xmodmap # for keyboard mapping, use in startup apps
ln -svf ${SCRIPT_DIR}/linux/inputrc ~/.inputrc
ln -svf ${SCRIPT_DIR}/linux/mimeapps.list ~/.config/mimeapps.list
ln -svf ${SCRIPT_DIR}/linux/remap_keys.desktop ~/.config/autostart/remap_keys.desktop
ln -svf ${SCRIPT_DIR}/git/gitconfig ~/.gitconfig
ln -svf ${SCRIPT_DIR}/git/attributes ~/.config/git/attributes
ln -svf ${SCRIPT_DIR}/other_programs/comet.config ~/.comet.config
ln -svf ${SCRIPT_DIR}/other_programs/terminator-config ~/.config/terminator/config
ln -svf ${SCRIPT_DIR}/other_programs/doublecmd_shortcuts.scf ~/.config/doublecmd/shortcuts.scf
ln -svf ${SCRIPT_DIR}/vscode/shellcheckrc ~/.shellcheckrc
ln -svf ${SCRIPT_DIR}/vscode/general-settings.json ~/.config/Code/User/settings.json
ln -svf ${SCRIPT_DIR}/vscode/workspaces/EPILAP.code-workspace ~/Projects/epilap/EPILAP.code-workspace
exit
fi
if [ "$1" = "home" ];
then
ln -svf ${SCRIPT_DIR}/linux/bashrc ~/.bashrc
ln -svf ${SCRIPT_DIR}/linux/ssh-config ~/.ssh/config
ln -svf ${SCRIPT_DIR}/linux/Xmodmap ~/.Xmodmap # for keyboard mapping, use in startup apps
ln -svf ${SCRIPT_DIR}/linux/inputrc ~/.inputrc
ln -svf ${SCRIPT_DIR}/linux/mimeapps.list ~/.config/mimeapps.list
ln -svf ${SCRIPT_DIR}/git/gitconfig ~/.gitconfig
ln -svf ${SCRIPT_DIR}/git/attributes ~/.config/git/attributes
ln -svf ${SCRIPT_DIR}/other_programs/comet.config ~/.comet.config
ln -svf ${SCRIPT_DIR}/vscode/shellcheckrc ~/.shellcheckrc
# ln -svf ${SCRIPT_DIR}/vscode/general-settings.json ~/.config/Code/User/settings.json
# ln -svf ${SCRIPT_DIR}/vscode/workspaces/EPILAP.code-workspace ~/Projects/epilap/EPILAP.code-workspace
exit
fi
if [ "$1" = "narval" ];
then
gen_folder=$SCRIPT_DIR
ln -svf "${gen_folder}/linux/inputrc" ~/.inputrc
vs_folder="${gen_folder}/vscode/workspaces"
ln -svf "${vs_folder}/NARVAL.code-workspace" ~/project-rabyj/NARVAL.code-workspace
ln -svf "${vs_folder}/narval-server-settings.json" ~/.vscode-server/data/Machine/settings.json
ln -svf ${gen_folder}/vscode/shellcheckrc ~/.shellcheckrc
cluster_folder="${gen_folder}/clusters"
ln -svf "${cluster_folder}/bashrc-narval" ~/.bashrc
echo "Please manually copy .comet.config content (api key kept out of git)"
exit
fi