Skip to content

Commit

Permalink
install: use XDG_CONFIG_HOME if available
Browse files Browse the repository at this point in the history
  • Loading branch information
go2null committed May 2, 2019
1 parent 85621f5 commit aa1d47c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/sh
CSDIR="$HOME/.config/geany/colorschemes/"
echo "Installing themes into \`$CSDIR'..."

CSDIR="${XDG_CONFIG_HOME:-$HOME/.config}/geany/colorschemes/"
echo "Installing themes into '$CSDIR'..."
mkdir -p "$CSDIR"
for SCHEME in `ls colorschemes/*.conf`
do
BNAME=`basename "$SCHEME"`
echo " => $BNAME"
cp "$SCHEME" "$CSDIR"
done

(
cd 'colorschemes'
for SCHEME in *.conf; do
echo " => $SCHEME"
cp "$SCHEME" "$CSDIR"
done
)

0 comments on commit aa1d47c

Please sign in to comment.