Skip to content

Commit fe801d0

Browse files
committed
install: use XDG_CONFIG_HOME if available
1 parent 85621f5 commit fe801d0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

install.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/sh
2-
CSDIR="$HOME/.config/geany/colorschemes/"
3-
echo "Installing themes into \`$CSDIR'..."
2+
3+
CSDIR="${XDG_CONFIG_HOME:-$HOME/.config}/geany/colorschemes/"
4+
echo "Installing themes into '$CSDIR'..."
45
mkdir -p "$CSDIR"
5-
for SCHEME in `ls colorschemes/*.conf`
6-
do
7-
BNAME=`basename "$SCHEME"`
8-
echo " => $BNAME"
6+
7+
cd 'colorschemes'
8+
for SCHEME in *.conf; do
9+
echo " => $SCHEME"
910
cp "$SCHEME" "$CSDIR"
1011
done

0 commit comments

Comments
 (0)