summaryrefslogtreecommitdiffstats
path: root/wpos.sh
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-05-17 13:18:58 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-05-17 13:18:58 +0200
commit6e663074fb9e1090c279737e29d6054504c04679 (patch)
tree123e8395176f1b4a0e9c6f291050043835a88a10 /wpos.sh
parentwpos: Provide parameter for customizable queries (diff)
downloaddisplay_autoset-6e663074fb9e1090c279737e29d6054504c04679.tar.xz
wpos: Provide command list
Diffstat (limited to 'wpos.sh')
-rwxr-xr-xwpos.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpos.sh b/wpos.sh
index 2da9187..5022ff7 100755
--- a/wpos.sh
+++ b/wpos.sh
@@ -34,6 +34,10 @@ if [ "$1" = "save" ]; then
query > "$SAVEPATH/$PROFILE"
exit 0
+elif [ "$1" = "list" ]; then
+ query -p
+ exit 0
+
elif [ "$1" = "restore" ]; then
cat "$SAVEPATH/$PROFILE" | while read LINE; do
## Parse records in savefile