mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-10-21 11:29:33 +00:00
add field to print newline
This commit is contained in:
1 parent
a0ee667546
commit
75b665e153
2 files changed
+3
-4
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user