summaryrefslogtreecommitdiff
path: root/crcparse
blob: fda41ddb1a29f65e5c7cac7b87075aa71db831d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/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