only add fonts if we are in X
This commit is contained in:
parent
f1ede02867
commit
c509cbbc9d
@ -1,8 +1,10 @@
|
||||
[[ -d ~/.fonts ]] && xset +fp ~/.fonts 2>/dev/null
|
||||
[[ -d ~/.local/share/fonts ]] && xset +fp ~/.local/share/fonts/ 2>/dev/null
|
||||
if [ ! -z $DISPLAY ]; then
|
||||
[[ -d ~/.fonts ]] && xset +fp ~/.fonts 2>/dev/null
|
||||
[[ -d ~/.local/share/fonts ]] && xset +fp ~/.local/share/fonts/ 2>/dev/null
|
||||
|
||||
for font in /usr/local/share/fonts/*; do
|
||||
xset +fp "${font}" 2>/dev/null
|
||||
done
|
||||
for font in /usr/local/share/fonts/*; do
|
||||
xset +fp "${font}" 2>/dev/null
|
||||
done
|
||||
|
||||
xset fp rehash
|
||||
xset fp rehash
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user