Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
6bb5a78f
Commit
6bb5a78f
authored
Oct 17, 2018
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: revert change.
parent
1278844d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
neofetch
neofetch
+6
-16
No files found.
neofetch
View file @
6bb5a78f
...
...
@@ -1136,7 +1136,7 @@ get_model() {
case "$model" in
"Standard PC"*) model="KVM/QEMU (${model})" ;;
"OpenBSD"*) model="vmm ($
{model}
)" ;;
"OpenBSD"*) model="vmm ($
model
)" ;;
esac
}
...
...
@@ -1476,8 +1476,8 @@ get_wm() {
((wm_run == 1)) && return
case "$uname" in
*"OpenBSD"*)
ps_flags=(x -c) ;;
*)
ps_flags=(-e) ;;
*"OpenBSD"*) ps_flags=(x -c) ;;
*) ps_flags=(-e) ;;
esac
if [[ "$WAYLAND_DISPLAY" ]]; then
...
...
@@ -3088,19 +3088,9 @@ get_disk() {
# Create an array called 'disks' where each element is a separate line from
# df's output. We then unset the first element which removes the column titles.
if [[ "$uname" == "OpenBSD" ]]; then
# On OpenBSD you can't use df against a /dev/... unless being root or
# in the 'operator' group. Making a separate disks array creation.
# building an AWK regexp
disk_re="${disk_show[*]:-/}"
disk_re="${disk_re// /\|}"
disk_re="^(${disk_re//\//\\\/})\$"
IFS=$'\n' read -d "" -ra disks <<< "$(df "${df_flags[@]}" | \
awk -v disk_re="$disk_re" '(NR > 1) && ($1 ~ disk_re || $6 ~ disk_re)')"
else
IFS=$'\n' read -d "" -ra disks <<< "$(df "${df_flags[@]}" "${disk_show[@]:-/}")"
unset "disks[0]"
fi
IFS=$'\n' read -d "" -ra disks <<< "$(df "${df_flags[@]}" "${disk_show[@]:-/}")"
unset "disks[0]"
# Stop here if 'df' fails to print disk info.
[[ -z "${disks[*]}" ]] && {
err "Disk: df failed to print the disks, make sure the disk_show array is set properly."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment