Fix debug/font-issues.zsh

- Add trim function
- Make our $OS and neofetchs $os compatible
pull/22/head
Dominik Ritter 6 years ago
parent 856071716e
commit f89a5bb365

@ -1,6 +1,21 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
#vim:ft=zsh ts=2 sw=2 sts=2 et fenc=utf-8 #vim:ft=zsh ts=2 sw=2 sts=2 et fenc=utf-8
source functions/colors.zsh
source functions/icons.zsh
source functions/utilities.zsh
# Map our $OS to neofetch $os
os="$OS"
trim() {
set -f
# shellcheck disable=2048,2086
set -- $*
printf '%s\n' "${*//[[:space:]]/ }"
set +f
}
get_ppid() { get_ppid() {
# Get parent process ID of PID. # Get parent process ID of PID.
case "$os" in case "$os" in

Loading…
Cancel
Save