-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshared.sh
49 lines (42 loc) · 1.06 KB
/
shared.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/bash
source ./env.sh
PADDING="-36"
COLOR_OFF="\033[0m" # Text Reset
NC=$COLOR_OFF # Reset color
# Regular Colors
BLACK="\033[0;30m"
BLUE="\033[0;34m"
CYAN="\033[0;36m"
GREEN="\033[0;32m"
MAGENTA="\033[0;35m"
RED="\033[0;31m"
WHITE="\033[0;37m"
YELLOW="\033[0;33m"
# Bold
BOLD_BLACK="\033[1;30m"
BOLD_RED="\033[1;31m"
BOLD_GREEN="\033[1;32m"
BOLD_YELLOW="\033[1;33m"
BOLD_BLUE="\033[1;34m"
BOLD_MAGENTA="\033[1;35m"
BOLD_CYAN="\033[1;36m"
BOLD_WHITE="\033[1;37m"
ROOT_DIR="${PWD%%/projects/*}"
GITHUB="https://github.com"
GITHUB_RAW="https://raw.githubusercontent.com"
DIR_CONFIG="$ROOT_DIR/.config"
DIR_PROJECTS="$ROOT_DIR/projects"
DIR_DRACULA="$DIR_PROJECTS/dracula"
THEME_PRO="dracula-pro"
DIR_DRACULA_PRO="$DIR_PROJECTS/$THEME_PRO"
function createdirsafely() {
DIR_NAME=$@
if [ ! -d "$DIR_NAME" ]; then
echo -e "${BLUE}Create directory: ${GREEN}${DIR_NAME}${NC}"
mkdir -p "$DIR_NAME"
fi
}
function loginstall() {
echo -e "${BLUE}========================================================${NC}"
echo -e "${BLUE}Installing: ${GREEN}$@${NC}"
}