1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-20 06:21:58 +00:00

Fix debug/font-issues.zsh

- Add trim function
- Make our $OS and neofetchs $os compatible
This commit is contained in:
Dominik Ritter 2018-07-22 17:15:43 +02:00
parent 856071716e
commit f89a5bb365

View file

@ -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