-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlink.sh
More file actions
executable file
·32 lines (26 loc) · 838 Bytes
/
link.sh
File metadata and controls
executable file
·32 lines (26 loc) · 838 Bytes
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
#!/bin/bash
# Set up symlinks
if command -v code >/dev/null 2>&1; then
CodeSettings=$PWD/settings.json
CodeSnippets=$PWD/snippets
ln -sf "$CodeSettings" ~/Library/Application\ Support/Code/User
ln -sf "$CodeSnippets" ~/Library/Application\ Support/Code/User
echo Created VScode settings link
else
echo "VScode is not installed so we won't link settings"
fi
BashSettings=$PWD/.bashrc
ln -sf "$BashSettings" ~
echo Created Bash settings link
ProfileSettings=$PWD/.bash_profile
ln -sf "$ProfileSettings" ~
echo Created Bash_Profile settings link
GitSettings=$PWD/.gitconfig
ln -sf "$GitSettings" ~
echo Created Git settings link
EmacsSettings=$PWD/.emacs
ln -sf "$EmacsSettings" ~
echo Created Emacs settings link
ConfigSettings=$PWD/.config
ln -sf "$ConfigSettings" ~
echo Created general config directory link