mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-19 22:11:57 +00:00
Fix debug/font-issues.zsh
- Add trim function - Make our $OS and neofetchs $os compatible
This commit is contained in:
parent
856071716e
commit
f89a5bb365
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue