From f89a5bb365abac051666f7f12ae7646f457caa72 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sun, 22 Jul 2018 17:15:43 +0200 Subject: [PATCH] Fix debug/font-issues.zsh - Add trim function - Make our $OS and neofetchs $os compatible --- debug/font-issues.zsh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/debug/font-issues.zsh b/debug/font-issues.zsh index ea3c4d67..e73830f0 100755 --- a/debug/font-issues.zsh +++ b/debug/font-issues.zsh @@ -1,6 +1,21 @@ #!/usr/bin/env zsh #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 parent process ID of PID. case "$os" in