diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-07-22 18:15:43 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2018-07-22 18:17:28 +0300 |
commit | f89a5bb365abac051666f7f12ae7646f457caa72 (patch) | |
tree | 918b9b76d384c815a53c07b4f92e2988e9608ec4 /debug | |
parent | 856071716e610967843478a3f7732e28cbd3a3a8 (diff) |
Fix debug/font-issues.zsh
- Add trim function
- Make our $OS and neofetchs $os compatible
Diffstat (limited to 'debug')
-rwxr-xr-x | debug/font-issues.zsh | 15 |
1 files changed, 15 insertions, 0 deletions
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 |