From 27b079f1bf0369db58ec13f09bef6f81c1057851 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Sun, 29 Oct 2023 14:39:01 -0600 Subject: [PATCH] Optional loading of neofetch for all shells --- bash/bashrc | 4 ++++ bash/bashrc.distrobox | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bash/bashrc b/bash/bashrc index a94a0a119..b8825f4f4 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -111,3 +111,7 @@ fi source "$HOME/.cargo/env" source ~/perl5/perlbrew/etc/bashrc . "$HOME/.cargo/env" + +if [[ -n "$(which neofetch 2> /dev/null)" ]]; then + neofetch +fi diff --git a/bash/bashrc.distrobox b/bash/bashrc.distrobox index 2ae2754ff..5f7140775 100644 --- a/bash/bashrc.distrobox +++ b/bash/bashrc.distrobox @@ -3,4 +3,3 @@ export DISTROBOX=$(grep -oP "(?<=name=\")[^\";]+" /run/.containerenv) export SSH_AUTH_SOCK="$HOME/.spool/ssh-agent.sock" HISTFILE="${HISTFILE}.$DISTROBOX" -neofetch