diff --git a/apps/fastfetch.nix b/apps/fastfetch.nix index 70014d8..67b671e 100644 --- a/apps/fastfetch.nix +++ b/apps/fastfetch.nix @@ -51,47 +51,28 @@ # Disable default greeting set -g fish_greeting - # Run fastfetch on terminal start - fastfetch --config /etc/fastfetch/config.jsonc - # Custom prompt function fish_prompt set -l last_status $status # Nix-shell indicator if set -q IN_NIX_SHELL - set_color yellow - printf '[nix-shell] ' + set_color -b yellow black + printf ' nix-shell ' set_color normal + printf ' ' end # Line 1: hostname ~/path - set_color green - printf ' ' - set_color yellow - printf '%s' (hostname) - set_color normal - printf ' ' - + set_color -b green black + printf ' ' + set_color -b yellow black + printf ' %s ' (hostname) + set_color -b blue white # Path with colored segments set -l realhome (string escape --style=regex -- $HOME) set -l path (string replace -r "^$realhome" '~' $PWD) - set -l parts (string split '/' $path) - set -l colors green cyan blue - - for i in (seq (count $parts)) - set -l part $parts[$i] - if test -n "$part" - if test $i -gt 1 - set_color brblack - printf '/' - end - set -l cidx (math '(' $i - 1 ')' '%' 3 + 1) - set_color $colors[$cidx] - printf '%s' $part - end - end - + printf ' %s ' $path set_color normal printf '\n' diff --git a/common.nix b/common.nix index 5d90d78..7ab991b 100644 --- a/common.nix +++ b/common.nix @@ -78,7 +78,7 @@ update = "sudo nixos-rebuild switch --flake github:ediblerope/nixos-config"; clean = "sudo nix-collect-garbage -d"; ll = "ls -alh"; - clear = "command clear && fastfetch --config /etc/fastfetch/config.jsonc"; + clear = "command clear"; reboot = "systemctl reboot"; };