Quellcode durchsuchen

Some common shell scripts too

Getty Ritter vor 9 Jahren
Ursprung
Commit
7db2506c3c
3 geänderte Dateien mit 19 neuen und 0 gelöschten Zeilen
  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