From 9875954f4a6b7f3482bd1e39eb1fbca54931e9ea Mon Sep 17 00:00:00 2001 From: Didier Date: Tue, 7 Mar 2023 10:06:27 +0100 Subject: [PATCH] fastfetch :) --- files/home/.zshrc | 2 +- scripts/05-zsh.sh | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/files/home/.zshrc b/files/home/.zshrc index 431f59c..ec4a6f4 100644 --- a/files/home/.zshrc +++ b/files/home/.zshrc @@ -24,7 +24,7 @@ alias get_rust='. $HOME/.cargo/env' alias s="title $HOST && cmatrix -rs && clear" # COSMETICS -if [ $_ZSH_PREF_NO_PFETCH != 1 ]; then pfetch; fi +if [ $_ZSH_PREF_NO_PFETCH != 1 ]; then fastfetch; fi else PS1="$(whoami)@$(cat /etc/hostname) $ " diff --git a/scripts/05-zsh.sh b/scripts/05-zsh.sh index 75ee7f6..5a2c865 100644 --- a/scripts/05-zsh.sh +++ b/scripts/05-zsh.sh @@ -1,11 +1,23 @@ #!/bin/sh $SUDO $PM $PM_INSTALL $PM_NOCONFIRM \ - zsh + zsh \ + cmake # for fastfetch -# install pfetch -[ -d /tmp/pfetch ] || $SUDO bash -c \ - "git clone https://github.com/dylanaraps/pfetch.git /tmp/pfetch && cd /tmp/pfetch && (chmod a+x ./pfetch && $SUDO mv ./pfetch /usr/local/bin/pfetch)" +# install fastfetch +[ -d /tmp/fastfetch ] || \ + git clone https://github.com/LinusDierheimer/fastfetch /tmp/fastfetch + +if [ ! -f /tmp/fastfetch/build/fastfetch ]; then +pushd /tmp/fastfetch + mkdir -p build + pushd build + cmake .. + cmake --build . --target fastfetch + $SUDO mv fastfetch /usr/local/bin/fastfetch + popd +popd +fi # install omz bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed"