From: Oleg Broytman Date: Tue, 11 Nov 2025 22:49:47 +0000 (+0300) Subject: .bashrc: Do not add `/usr/games` to `$PATH` multiple times X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b83b99131ec73b7fc3bd9ad1dc3b23ff3591ec07;p=dotfiles.git .bashrc: Do not add `/usr/games` to `$PATH` multiple times If it was added in `~/.profile` do not add it here. But add if `$PATH` was rest. --- diff --git a/.bashrc b/.bashrc index a7233ab..13a580d 100644 --- a/.bashrc +++ b/.bashrc @@ -12,10 +12,10 @@ umask 077 # Fix default PATH if [ "$PATH" = "/usr/local/bin:/usr/bin:/bin:/usr/games" ]; then PATH="$HOME"/bin:"$HOME"/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -fi -if [ -n "$DISPLAY" ]; then - PATH=$PATH:/usr/games + if [ -n "$DISPLAY" ]; then + PATH=$PATH:/usr/games + fi fi # Make `ssh host date` to display in 24-hour format