Browse Source

Some common shell scripts too

Getty Ritter 9 years ago
parent
commit
7db2506c3c
3 changed files with 19 additions and 0 deletions
  1. 5 0
      scripts/as-tmp
  2. 7 0
      scripts/ff-here
  3. 7 0
      scripts/surf-here

+ 5 - 0
scripts/as-tmp

@@ -0,0 +1,5 @@
+#!/bin/sh
+
+FILENAME=$(mktemp)
+cat >$FILENAME
+echo $FILENAME

+ 7 - 0
scripts/ff-here

@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [[ "$1" = /* ]]; then
+	firefox file://$1
+else
+	firefox file://$(pwd)/$1
+fi

+ 7 - 0
scripts/surf-here

@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [[ "$1" = /* ]]; then
+	surf file://$1
+else
+	surf file://$(pwd)/$1
+fi