You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,10 @@ The information below the fancy dynamic ASCII art comes from a modular informati
20
20
21
21
The `welcome` script from the `bin` directory can be installed anywhere in your `$PATH`. `~/bin` makes sense, but it can be any directory.
22
22
23
+
### Setup a configuration directory
24
+
25
+
The configuration of `welcome` can either be stored in `~/.welcome` or in `$XDG_CONFIG_HOME/welcome` (which defaults to `~/.config/welcome`). Please create this directory and place all files from the following steps into it.
26
+
23
27
### Install figlet, a dependency of welcome
24
28
25
29
[figlet](http://www.figlet.org) is a command line tool to generate fancy ASCII art from text and is a required depencency of welcome.
@@ -29,7 +33,7 @@ The `welcome` script from the `bin` directory can be installed anywhere in your
29
33
toast arm ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz
30
34
```
31
35
32
-
2. Get colossal, a figlet ASCII font that looks great but is not included by default: Download the file [colossal.flf](http://www.figlet.org/fonts/colossal.flf) from the figlet website and place it in `~/.welcome/colossal.flf`.
36
+
2. Get colossal, a figlet ASCII font that looks great but is not included by default: Download the file [colossal.flf](http://www.figlet.org/fonts/colossal.flf) from the figlet website and place it in `.welcome/colossal.flf`.
33
37
34
38
### Create your own information providers
35
39
@@ -39,7 +43,7 @@ The reason welcome is so flexible is the modular information provider system. Th
39
43
40
44
A summarizer is a function that returns one or more lines of text. Summarizers are expected to always output information and are therefore useful for information like the current date, the system uptime etc.
41
45
42
-
You can place as many summarizers as you need in `~/.welcome/summarizers`. Each summarizer is a shell script with a specific structure:
46
+
You can place as many summarizers as you need in `.welcome/summarizers`. Each summarizer is a shell script with a specific structure:
43
47
44
48
```bash
45
49
functionhelloWorldSummarizer() {
@@ -54,17 +58,17 @@ This summarizer will output a simple `Hello: World`.
54
58
55
59
The order of the summarizers gets defined by the order in the file system. So to force a specific order, simply prepend numbers, like so: `01-helloworld.sh`.
56
60
57
-
**There is one thing you need to do before this can work: Your summarizers must actually be executable files to make sure only files you wanted to run are run, so please set `chmod +x ~/.welcome/summarizers/*`**.
61
+
**There is one thing you need to do before this can work: Your summarizers must actually be executable files to make sure only files you wanted to run are run, so please set `chmod +x .welcome/summarizers/*`**.
58
62
59
63
#### Warners
60
64
61
65
Warners are the second kind of information provider. The difference to summarizers is that a warner does not have to output anything. They are useful for information that is only relevant in specific situations (for example when a package update is available like in the screenshot above).
62
66
63
-
You can place as many warners as you need in `~/.welcome/warners`. Warners are arbitrary binaries that simply output text.
67
+
You can place as many warners as you need in `.welcome/warners`. Warners are arbitrary binaries that simply output text.
64
68
65
69
The order of the warners also gets defined by the order in the file system. So to force a specific order, simply prepend numbers, like so: `01-helloworld.sh`.
66
70
67
-
**Same here: Please set `chmod +x ~/.welcome/warners/*` to make sure only files you wanted to run are run**.
71
+
**Same here: Please set `chmod +x .welcome/warners/*` to make sure only files you wanted to run are run**.
0 commit comments