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 fe801d0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/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"

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

0 comments on commit fe801d0

Please sign in to comment.