-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
37 lines (29 loc) · 792 Bytes
/
.zshrc
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
#!/bin/zsh
###### Description:
###### Author: Valentin Beaumont
###### Mail: [email protected]
###### ENVIRONMENT #############################################################
# ------ Cloud (used as a server equivalent)
_myos="$(uname)"
case $_myos in
Linux)
export SERVER_ROOT="Path/to/drive/linux"
;;
Darwin)
export SERVER_ROOT="Path/to/drive/macOS"
;;
Windows)
export SERVER_ROOT="Path/to/drive/windows"
;;
*) ;;
esac
export CONFIG_ROOT="$SERVER_ROOT/.config"
export ENVIRONMENT_ROOT="$CONFIG_ROOT/environment"
export PIPELINE_ROOT="$CONFIG_ROOT/pipeline"
# ------ Shell
if [ -f $ENVIRONMENT_ROOT/unix/aliases.sh ]; then
. $ENVIRONMENT_ROOT/unix/aliases.sh
fi
if [ -f $ENVIRONMENT_ROOT/unix/dcc.sh ]; then
. $ENVIRONMENT_ROOT/unix/dcc.sh
fi