summaryrefslogtreecommitdiff
path: root/crcparse
blob: ee823b129866a2c4bf915b04eefad9a6a5643d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/sbin/sh

if [ -n "$XDG_CONFIG_HOME" ]; then
  CONPATH="$XDG_CONFIG_HOME"
elif [ -d "$HOME/.config" ]; then
  CONPATH="$HOME/.config"
else
  CONPATH="$HOME"
fi

FILE="$CONPATH/computerrc"

grep $1 "$FILE" | cut -d'=' -f2