aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xalg11
1 files changed, 9 insertions, 2 deletions
diff --git a/alg b/alg
index aab4581..7d81fd8 100755
--- a/alg
+++ b/alg
@@ -6,10 +6,10 @@
6# Example: alg c UBL E - prints out all first algs for UBL-FDR-* 6# Example: alg c UBL E - prints out all first algs for UBL-FDR-*
7 7
8usage() { 8usage() {
9 echo "Usage: alg [c|e|w] [buffer] [1 letter|2 letters]" 9 echo "Usage: alg [edit] (c|e|w) [buffer] (1 letter|2 letters)"
10} 10}
11 11
12editor=vi 12default_editor=vi
13basedir="$HOME/box/speedcubing/bld/algs" 13basedir="$HOME/box/speedcubing/bld/algs"
14ebuffer=UR 14ebuffer=UR
15cbuffer=UFR 15cbuffer=UFR
@@ -137,6 +137,13 @@ showall_w() {
137 done 137 done
138} 138}
139 139
140if [ "$1" = "edit" ]; then
141 editor="$default_editor"
142 shift
143else
144 editor="cat"
145fi
146
140type="$1" 147type="$1"
141if [ -z "$3" ]; then 148if [ -z "$3" ]; then
142 letters="$2" 149 letters="$2"

Generated with cgit - Back to sebastiano.tronto.net