]> git.donarmstrong.com Git - bin.git/commitdiff
added sane_editor and sa
authorDon Armstrong <don@donarmstrong.com>
Thu, 13 Oct 2005 10:03:27 +0000 (10:03 +0000)
committerDon Armstrong <don@donarmstrong.com>
Thu, 13 Oct 2005 10:03:27 +0000 (10:03 +0000)
sa [new file with mode: 0755]
sane_editor [new file with mode: 0755]

diff --git a/sa b/sa
new file mode 100755 (executable)
index 0000000..54530d2
--- /dev/null
+++ b/sa
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# sync all script
+
+# attempt to sync all known svn projects
+
+if [ "$1" == "quick" ]; then
+    $IGNORE="--ignore-externals";
+fi;
+
+for dir in ~/ ~/.hide ~/projects/propel ~/bin ~/lib; do 
+    if [ -e $dir/.svn ]; then
+       svn update $IGNORE $dir;
+    fi;
+done;
\ No newline at end of file
diff --git a/sane_editor b/sane_editor
new file mode 100755 (executable)
index 0000000..b12b99f
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# Order of preference
+# gnuclient
+# jed
+# juno
+# vi
+# nano
+# ed
+
+# modify the gsrvdir check to search for directories that are owned by me
+if [ -x /usr/bin/gnuclient ] && [ -x /usr/bin/emacs ]; then
+    if ( gnuclient -batch < /dev/null >/dev/null); then
+       exec gnuclient "$@";
+    fi;
+fi;
+if [ -x /usr/bin/jed ]; then
+    exec jed "$@";
+fi;
+if [ -x /usr/bin/juno ]; then
+    exec juno "$@";
+fi;
+if [ -x /usr/bin/vi ]; then
+    exec vi "$@";
+fi;
+if [ -x /usr/bin/nano ]; then 
+    exec nano "$@";
+fi;
+if [ -x /usr/bin/ed ]; then
+    exec ed "$@";
+fi;
+echo "Unable to find a suitable editor" >/dev/stderr;
+exit 1;
\ No newline at end of file