aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-03-25 09:27:35 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2024-03-25 09:27:35 +0100
commitc753cb09fa29b86664f7e61c6cace60db57aa002 (patch)
tree7ee938166d3d380e492492415cf05a29606198f5
parentcef87ace700f2865032eafb2c82dbb5700d1e518 (diff)
downloadscripts-c753cb09fa29b86664f7e61c6cace60db57aa002.tar.gz
scripts-c753cb09fa29b86664f7e61c6cace60db57aa002.zip
Changes to alg
-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