From caa2346a837afa350d2ad6d6cecfb78b5abaf315 Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 28 Oct 2020 01:13:45 -0400 Subject: .bash_profile: Don't assume groff exists --- .bash_profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index d896c01..25b8708 100644 --- a/.bash_profile +++ b/.bash_profile @@ -48,7 +48,9 @@ export XDG_DATA_HOME="$HOME/.local/share" export CARGO_HOME="$XDG_CACHE_HOME/cargo" export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer" export RUSTUP_HOME="$XDG_DATA_HOME/rustup" -GROFF_FONT_PATH="$HOME/.nix-profile/share/groff/$(groff -v | head -n1 | awk '{ print $4 }')/font" && export GROFF_FONT_PATH +command -v groff > /dev/null 2>&1 && \ + GROFF_FONT_PATH="$HOME/.nix-profile/share/groff/$(groff -v | head -n1 | awk '{ print $4 }')/font" && \ + export GROFF_FONT_PATH # themes export DESKTOP_SESSION=gnome -- cgit v1.2.3