mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-11-19 19:40:46 +00:00
add field to print newline
This commit is contained in:
1 parent
a0ee667546
commit
83cdf4fc57
2 files changed
+3
-4
No files matched your search
@@ -12,7 +12,7 @@ fetch written in POSIX shell with no external commands
|
|||||||
### Customization
|
### Customization
|
||||||
`fet.sh` can be configured using environment variables, for example:
|
`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:
|
Supported options are:
|
||||||
- `accent` (0-7)
|
- `accent` (0-7)
|
||||||
|
|||||||
@@ -114,9 +114,9 @@ print() {
|
|||||||
|
|
||||||
read -r host < /proc/sys/kernel/hostname
|
read -r host < /proc/sys/kernel/hostname
|
||||||
|
|
||||||
echo
|
for i in ${info:-n user os sh wm up gtk cpu mem host kern pkgs term col n}; do
|
||||||
for i in ${info:-user os sh wm up gtk cpu mem host kern pkgs term col}; do
|
|
||||||
case $i in
|
case $i in
|
||||||
|
n) echo;;
|
||||||
os) print os "$ID";;
|
os) print os "$ID";;
|
||||||
sh) print sh "${SHELL##*/}";;
|
sh) print sh "${SHELL##*/}";;
|
||||||
wm) print wm "$wm";;
|
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;;
|
col) col;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
echo
|
|
||||||
Reference in new issue
Block a user