-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·64 lines (51 loc) · 1.22 KB
/
install.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
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env bash
echo
echo
echo "~~!~~!--!~~!--!~~!~~"
echo
echo " ! writer ! "
echo
echo "~~!~~!--!~~!--!~~!~~"
echo
echo
echo "Hi writer - hope you are well. Thanks for downloading writer."
echo
echo "Whenever you use this CLI, your writing will automatically open in a text editor."
if [ -n "${EDITOR+1}" ]; then
echo "It looks like you're using $EDITOR as your text editor."
echo "Do you want to use that for your writer? Type y/n: [y]"
read use_existing_editor
if [ "${use_existing_editor}" == 'n' ]; then
echo "You need to change the $EDITOR variable in your shell's startup file."
echo "It might look like this:"
echo
echo " export EDITOR=vim"
fi
else
echo "You need to change the $EDITOR variable in your shell's startup file."
echo "It might look like this:"
echo
echo " export EDITOR=vim"
fi
echo
echo
cd .src
$(make install >/dev/null)
echo "Your writer is setup! To write in your daily note, try:"
echo
echo " writer -n"
echo
echo
echo "To get some help, try:"
echo
echo " writer -h"
echo
echo
echo "Good luck writing !"
echo
echo
echo "~~!~~!--!~~!--!~~!~~"
echo
echo " ! writer ! "
echo
echo "~~!~~!--!~~!--!~~!~~"