-
Notifications
You must be signed in to change notification settings - Fork 0
/
em
executable file
·48 lines (47 loc) · 1.17 KB
/
em
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
#!/bin/bash
# tool to manage emacs configurations in linux
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
DGRAY='\033[1;30m'
NC='\033[0m' # No Color
while getopts 'udc' OPTION; do
case "$OPTION" in
u)
message="c l e a n i n g . . ."
for i in $message
do
sleep .2
printf "${RED}${i}"
done
sleep 1
rm -rf ~/.doom.d
rm -rf ~/.emacs.d
printf "\n${BLUE}done\n"
;;
d)
message="D O O M"
for i in $message
do
sleep .2
printf "${DGRAY}${i}"
done
sleep 1
cp -r ~/Documents/doom.d ~/.doom.d
cp -r ~/Documents/emacs.d ~/.emacs.d
printf "\n${BLUE}done\n"
;;
c)
message="C E N T A U R"
for i in $message
do
sleep .2
printf "${DGRAY}${i}"
done
cp -r ~/Documents/centaur/emacs.d ~/.emacs.d
sleep 1
printf "\n${BLUE}done\n"
;;
esac
done
shift "$(($OPTIND -1))"