summaryrefslogtreecommitdiffstats
path: root/.local/bin/getkeys
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-08 17:21:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-08 17:21:40 -0400
commit422d106fbab5505f3810fa845f4f71547c7a4332 (patch)
treef6a04c7eabbad04e7c11b3da8e683e69b9df5da2 /.local/bin/getkeys
parent2c06dd36c61dea7383d2a12900eb83ee1751115a (diff)
downloadeibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.gz
eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.zst
eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.zip
assume default values if xdg dirs not set
Diffstat (limited to '.local/bin/getkeys')
-rwxr-xr-x.local/bin/getkeys4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/getkeys b/.local/bin/getkeys
index 0a12d22..a1113f1 100755
--- a/.local/bin/getkeys
+++ b/.local/bin/getkeys
@@ -1,5 +1,5 @@
#!/bin/sh
-cat $XDG_DATA_HOME/larbs/getkeys/"$1" 2>/dev/null && exit
+cat ${XDG_DATA_HOME:$HOME/.local/share}/larbs/getkeys/"$1" 2>/dev/null && exit
echo "Run command with one of the following arguments for info about that program:"
-ls $XDG_DATA_HOME/larbs/getkeys
+ls ${XDG_DATA_HOME:$HOME/.local/share}/larbs/getkeys