Change 'seperator' to 'separator'. Thanks @tudurom

This commit is contained in:
Dylan 2016-02-07 10:03:49 +11:00
parent a4b01e9545
commit 4fed7d5576
4 changed files with 17 additions and 17 deletions

8
1.1.md
View file

@ -91,8 +91,8 @@ fetch --stdout --disable kernel packages gtktheme
```
- Added `--stdout_seperator` and `$stdout_seperator` which takes a string and adds it<br \>
as a seperator between the output.
- Added `--stdout_separator` and `$stdout_separator` which takes a string and adds it<br \>
as a separator between the output.
- Added `--stdout_title` and `$stdout_title` which allow you to toggle the `title@hostname`<br \>
from appearing in the output.
- Added `--stdout_subtitles` which allow you to toggle the `Info:` titles from appearing in<br \>
@ -102,8 +102,8 @@ the output.
# Hiding subtitles
fetch --stdout --stdout_subtitles off
# Custom seperator
fetch --stdout disk gpu --stdout_seperator " | "
# Custom separator
fetch --stdout disk gpu --stdout_separator " | "
```

View file

@ -302,7 +302,7 @@ alias fetch2="fetch \
in a plain-text format that you can use with
lemonbar etc.
--stdout_title on/off Hide/Show the title in stdout mode.
--stdout_seperator string String to use as a seperator in stdout mode.
--stdout_separator string String to use as a separator in stdout mode.
--stdout_subtitles on/off Hide/Show the subtitles in stdout mode.

View file

@ -334,9 +334,9 @@ config_file="$HOME/.config/fetch/config"
# Other Options {{{
# Seperator to use in stdout mode.
# --stdout_seperator string
stdout_seperator=" "
# Separator to use in stdout mode.
# --stdout_separator string
stdout_separator=" "
# Hide/Show the title in stdout mode.
# --stdout_title on/off

18
fetch
View file

@ -354,9 +354,9 @@ config_file="$HOME/.config/fetch/config"
# Other Options {{{
# Seperator to use in stdout mode.
# --stdout_seperator string
stdout_seperator=" "
# Separator to use in stdout mode.
# --stdout_separator string
stdout_separator=" "
# Hide/Show the title in stdout mode.
# --stdout_title on/off
@ -1243,7 +1243,7 @@ getbattery () {
return
fi
# Print each battery on a seperate line.
# Print each battery on a separate line.
for bat in "${batteries[@]}"; do
prin "${title}${index}: ${bat}%"
index=$((index + 1))
@ -1831,7 +1831,7 @@ info () {
[ "$stdout_subtitles" == "off" ] && string=${string/*: }
# If the string isn't empty, print it.
[ ! -z "$string" ] && printf "%s" "${string}${stdout_seperator}"
[ ! -z "$string" ] && printf "%s" "${string}${stdout_separator}"
else
printf "%b%s\n" "${padding}${string}${clear}"
@ -1861,7 +1861,7 @@ prin () {
# Print the info
if [ "$stdout" == "on" ]; then
printf "%s" "${string}${stdout_seperator}"
printf "%s" "${string}${stdout_separator}"
else
printf "%b%s\n" "${padding}${string}${clear}"
fi
@ -1880,7 +1880,7 @@ stdout () {
"--stdout") continue ;;
"--"*) break ;;
*)
case "${args[$((index + 1))]}" in "--"*) unset stdout_seperator ;; esac
case "${args[$((index + 1))]}" in "--"*) unset stdout_separator ;; esac
info "$func"
;;
esac
@ -2106,7 +2106,7 @@ usage () { cat << EOF
in a plain-text format that you can use with
lemonbar etc.
--stdout_title on/off Hide/Show the title in stdout mode.
--stdout_seperator string String to use as a seperator in stdout mode.
--stdout_separator string String to use as a separator in stdout mode.
--stdout_subtitles on/off Hide/Show the subtitles in stdout mode.
@ -2224,7 +2224,7 @@ while [ "$1" ]; do
# Stdout
--stdout_title) stdout_title="$2" ;;
--stdout_seperator) stdout_seperator="$2" ;;
--stdout_separator) stdout_separator="$2" ;;
--stdout_subtitles) stdout_subtitles="$2" ;;
--stdout)
case "$2" in