Merge pull request #682 from dylanaraps/get_locale
Info: Added function to display locale.
This commit is contained in:
commit
0180485851
2 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,7 @@ print_info() {
|
||||||
# info "Public IP" public_ip
|
# info "Public IP" public_ip
|
||||||
# info "Users" users
|
# info "Users" users
|
||||||
# info "Install Date" install_date
|
# info "Install Date" install_date
|
||||||
|
# info "Locale" locale # This only works on glibc systems.
|
||||||
|
|
||||||
info line_break
|
info line_break
|
||||||
info cols
|
info cols
|
||||||
|
|
4
neofetch
4
neofetch
|
@ -1997,6 +1997,10 @@ get_install_date() {
|
||||||
install_date="$(convert_time "${install_date[@]}")"
|
install_date="$(convert_time "${install_date[@]}")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_locale() {
|
||||||
|
locale="$sys_locale"
|
||||||
|
}
|
||||||
|
|
||||||
get_cols() {
|
get_cols() {
|
||||||
if [[ "$color_blocks" == "on" ]]; then
|
if [[ "$color_blocks" == "on" ]]; then
|
||||||
# Convert the width to space chars.
|
# Convert the width to space chars.
|
||||||
|
|
Loading…
Reference in a new issue