add field to print newline

This commit is contained in:
GaugeK committed 2020-08-19 05:27:15 +10:00
1 parent a0ee667546
commit 75b665e153
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ fetch written in POSIX shell with no external commands
### Customization
`fet.sh` can be configured using environment variables, for example:
```
$ info='os wm sh' fet.sh
$ info='n os wm sh n' fet.sh
```
Supported options are:
- `accent` (0-7)
+2 -3
View File
@@ -114,9 +114,9 @@ print() {
read -r host < /proc/sys/kernel/hostname
echo
for i in ${info:-user os sh wm up gtk cpu mem host kern pkgs term col}; do
for i in ${info:-n user os sh wm up gtk cpu mem host kern pkgs term col n}; do
case $i in
n) echo;;
os) print os "$ID";;
sh) print sh "${SHELL##*/}";;
wm) print wm "$wm";;
@@ -132,4 +132,3 @@ for i in ${info:-user os sh wm up gtk cpu mem host kern pkgs term col}; do
col) col;;
esac
done
echo