Commit d8824a52fa984a59acd561299b95f0db80f37f37

Authored by Miguel Barão
1 parent 5c3ac220
Exists in master

Add gitignore

Adds `.gitignore` to ignore the binary `battery`.
Changed text in the `README.md`.
Showing 2 changed files with 9 additions and 3 deletions   Show diff stats
.gitignore 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +battery
@@ -10,13 +10,18 @@ NerdFonts have been tested. @@ -10,13 +10,18 @@ NerdFonts have been tested.
10 Compile with 10 Compile with
11 11
12 ```sh 12 ```sh
13 -cc -Os battery.c -o battery 13 +cc -O2 battery.c -o battery
14 ``` 14 ```
15 15
16 -and copy the executable to `~/.local/bin`. 16 +and copy or link the executable into `~/.local/bin`, which should be on your
  17 +`$PATH`.
17 18
18 -In `~/.tmux.conf` setup the status bar with something like 19 +Edit `~/.tmux.conf` and setup the status bar with something like
19 20
20 ```tmux 21 ```tmux
21 set-option -g status-right "#($HOME/.local/bin/battery) %a, %d %b %H:%M " 22 set-option -g status-right "#($HOME/.local/bin/battery) %a, %d %b %H:%M "
22 ``` 23 ```
  24 +
  25 +Reload tmux and enjoy!
  26 +
  27 +Miguel