Explorar el Código

Some common shell scripts too

Getty Ritter hace 9 años
padre
commit
7db2506c3c
Se han modificado 3 ficheros con 19 adiciones y 0 borrados
  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