commit b0e9f253160fa4a572e2e1a8fbbaed839d5af98f
parent 57363c41c574b67cbe8bc3c50c79b06bf7b3ea52
Author: Byron Torres <b@torresjrjr>
Date: Tue, 2 Feb 2021 01:15:00 +0000
_shell(): Use < instead of cat
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fetch b/fetch
@@ -55,8 +55,7 @@ _kernel() {
printf "$1" "$(uname -sr)"
}
_shell() {
- shell=$(cat /proc/$(cat /proc/$$/ppid)/exename)
- printf "$1" "${shell}"
+ printf "$1" "$(< /proc/$(< /proc/$$/ppid)/exename)"
}
_sshd() {
sshd_pids=$(ps | awk 'BEGIN{ORS=" "}; /sshd/{print $1}')