From 4e7d52413f75ebae1153826cdee47a1aa351a526 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 1 May 2022 13:46:13 -0700 Subject: [PATCH] added to of alias, using yq to format, very similar to jq. also install yq --- aliases | 2 +- updates.txt | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/aliases b/aliases index 39545587..eeadd601 100644 --- a/aliases +++ b/aliases @@ -36,7 +36,7 @@ alias li="exa -lh" alias ll="exa -liah" alias {lsdir,lsd}="ls -t -1" # list only the directories alias lshw="doas lshw -short" # list hardware -alias of="onefetch -o yaml" +alias of="onefetch -o yaml | yq -C" alias mkdir='mkdir -pv' alias {ex,esc}="exit" alias {his,hist}="history" diff --git a/updates.txt b/updates.txt index 54a58874..26ddff8f 100644 --- a/updates.txt +++ b/updates.txt @@ -6,16 +6,10 @@ awk '!($2="")' add notation about tr (translate command): replace every newline with a single space: tr '\n' ' ' + add notation about using find to list only files in current directory and NOT subdirectory: find $dir -maxdepth 1 -type f -Install exa (colorized version of ls) -doas pacman -S exa +Install yq (similar to jq, but for yaml) -Install speed-test - -paru speed-test (choose 2 option, not .git version) - -Go to https://learning.lpi.org/en/learning-materials/101-500/ and download pdf - -Go to https://learning.lpi.org/en/learning-materials/102-500/ and download pdf +doas pacman -S yq