From 0a5a741e0011a4a51dadc868bab94e85f9c4a06d Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 25 Jul 2017 03:48:48 +0700 Subject: [PATCH] Image: Add path to NixOS w3m-img --- CHANGELOG.md | 5 +++++ neofetch | 3 +++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 471fce7e..399390f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,11 @@ - Fixed Raspbian being detected as ChromeOS. +## Images + +- [w3m] Fixed w3m-img not found on NixOS. + + ## ASCII - Added small Debian. diff --git a/neofetch b/neofetch index 839b52eb..b4ba2f49 100755 --- a/neofetch +++ b/neofetch @@ -2365,6 +2365,9 @@ get_w3m_img_path() { elif [[ -x "/usr/local/libexec/w3m/w3mimgdisplay" ]]; then w3m_img_path="/usr/local/libexec/w3m/w3mimgdisplay" + elif [[ -x "$HOME/.nix-profile/libexec/w3m/w3mimgdisplay" ]]; then + w3m_img_path="$HOME/.nix-profile/libexec/w3m/w3mimgdisplay" + else err "Image: w3m-img wasn't found on your system" fi