-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetupSymLinkDirs.sh
More file actions
31 lines (22 loc) · 870 Bytes
/
SetupSymLinkDirs.sh
File metadata and controls
31 lines (22 loc) · 870 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
#!/bin/bash
# Setup symbolic links in home directory to shared Windows directories
: ${SetupSymLinkDriveLetter:=E}
mkdir -p ~/shared
if [ ! -h "$HOME/shared/data" ]; then
ln -s /mnt/hgfs/Windows$SetupSymLinkDriveLetter/data ~/shared/data
fi
if [ ! -h "$HOME/shared/Documents" ]; then
ln -s /mnt/hgfs/Windows$SetupSymLinkDriveLetter/Documents ~/shared/Documents
fi
if [ ! -h "$HOME/shared/Music" ]; then
ln -s /mnt/hgfs/Windows$SetupSymLinkDriveLetter/Music ~/shared/Music
fi
if [ ! -h "$HOME/shared/Pictures" ]; then
ln -s /mnt/hgfs/Windows$SetupSymLinkDriveLetter/Pictures ~/shared/Pictures
fi
if [ ! -h "$HOME/shared/Podcasts" ]; then
ln -s /mnt/hgfs/Windows$SetupSymLinkDriveLetter/Podcasts ~/shared/Podcasts
fi
if [ ! -h "$HOME/shared/projects" ]; then
ln -s /mnt/hgfs/Windows$SetupSymLinkDriveLetter/projects ~/shared/projects
fi