]> git.phdru.name Git - dotfiles.git/commitdiff
.bashrc,.profile: Add to `$PATH` XScreenSaver hacks in `/usr/games`
authorOleg Broytman <phd@phdru.name>
Wed, 4 Jan 2023 11:25:44 +0000 (14:25 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 4 Jan 2023 12:14:14 +0000 (15:14 +0300)
.bashrc
.profile

diff --git a/.bashrc b/.bashrc
index 2d94622f2a7d7945e0159715fd710b50a2d376f9..3255cb6d6892ad96e983e1b4674267dd501c840a 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -10,6 +10,9 @@
 umask 077
 
 PATH="$HOME"/bin:"$HOME"/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+if [ -n "$DISPLAY" ]; then
+    PATH=$PATH:/usr/games
+fi
 
 # Make `ssh host date` to display in 24-hour format
 LANG=C
index 338ceb16b293a65073397a1fd17c9fe5377a94b9..92c103270569c0efc08125c811c60c61448553dd 100644 (file)
--- a/.profile
+++ b/.profile
@@ -224,6 +224,8 @@ fi
 #export DISPLAY
 
 if [ -n "$DISPLAY" ]; then
+    PATH=$PATH:/usr/games
+
     # mutt, python and vim
     BACKGROUND=LIGHT
     export BACKGROUND