File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ BASH_COMPLETION_DIR := $(strip $(BASH_COMPLETION_DIR))
5
5
USERDIR ?= $(HOME )
6
6
7
7
# The @ symbols make the output silent.
8
- # the \033[0m stuff is ansi color escape codes.
9
8
10
9
install :
11
10
@if [ -d $( BASH_COMPLETION_DIR) ]; then \
@@ -19,13 +18,13 @@ install:
19
18
@install -m755 -D notes $(PREFIX ) /bin/notes
20
19
@install -m777 -D config $(USERDIR ) /.config/notes/config
21
20
@install -D notes.1 $(PREFIX ) /share/man/man1/notes.1
22
- @mandb 1> /dev/nulli 2>&1 # Fail silently if we don't have a mandb
23
- @echo -e " Notes has been installed to \033[0;32m $( PREFIX) /bin/notes." \
24
- " \n\033[0mA configuration file has also been created at" \
25
- " \033[0;32m $( USERDIR) /.config/notes/config,\033[0m " \
21
+ @mandb 1> /dev/null 2>&1 # Fail silently if we don't have a mandb
22
+ @echo -e " Notes has been installed to $( PREFIX) /bin/notes." \
23
+ " A configuration file has also been created at" \
24
+ " $( USERDIR) /.config/notes/config," \
26
25
" which you can edit if you'd like to change the default settings." \
27
- " \nGet started now by running \033[0;32mnotes open my-new-note\033[0m " \
28
- " Or you can run \033[0;32mnotes help\033[0m for more info"
26
+ " \nGet started now by running notes open my-new-note" \
27
+ " Or you can run notes help for more info"
29
28
30
29
uninstall :
31
30
rm -f $(PREFIX ) /bin/notes
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ You'll need to open a new shell for this to take effect.
55
55
## What if I want to uninstall this?
56
56
If you used the automated install script to install notes, you can uninstall it the same way by running:
57
57
``` bash
58
- export uninstall=1 && curl https://rawgit.com/pimterry/notes/master/install.sh | bash
58
+ curl https://rawgit.com/pimterry/notes/master/install.sh | bash -s uninstall
59
59
```
60
60
61
61
## How do I configure this?
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ extract_dir=$(mktemp -d /tmp/notes.XXXXX)
25
25
26
26
echo " Downloading and Extracting Notes from Repository..."
27
27
curl -L https://api.github.com/repos/pimterry/notes/tarball | tar -xzp -C $extract_dir --strip-components=1
28
- if [ " $uninstall " != " 1 " ]; then
28
+ if [ " $1 " != " uninstall " ]; then
29
29
echo " Installing notes..."
30
30
cd $extract_dir && make USERDIR=$user_home
31
31
else
You can’t perform that action at this time.
0 commit comments