Browse code

Moving some rails and osx-specific functions to their corresponding plugin files

Robby Russell authored on 03/06/2010 at 19:55:07
Showing 3 changed files
... ...
@@ -21,10 +21,6 @@ function preexec {
21 21
   title $cmd[1]:t "$cmd[2,-1]"
22 22
 }
23 23
 
24
-function remote_console() {
25
-  /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
26
-}
27
-
28 24
 function zsh_stats() {
29 25
   history | awk '{print $2}' | sort | uniq -c | sort -rn | head
30 26
 }
... ...
@@ -37,18 +33,6 @@ function upgrade_oh_my_zsh() {
37 37
   /bin/sh $ZSH/tools/upgrade.sh
38 38
 }
39 39
 
40
-function tab() {
41
-  osascript 2>/dev/null <<EOF
42
-    tell application "System Events"
43
-      tell process "Terminal" to keystroke "t" using command down
44
-    end
45
-    tell application "Terminal"
46
-      activate
47
-      do script with command "cd \"$PWD\"; $*" in window 1
48
-    end tell
49
-EOF
50
-}
51
-
52 40
 function take() {
53 41
   mkdir -p $1
54 42
   cd $1
55 43
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+function tab() {
1
+  osascript 2>/dev/null <<EOF
2
+    tell application "System Events"
3
+      tell process "Terminal" to keystroke "t" using command down
4
+    end
5
+    tell application "Terminal"
6
+      activate
7
+      do script with command "cd \"$PWD\"; $*" in window 1
8
+    end tell
9
+EOF
10
+}
0 11
\ No newline at end of file
... ...
@@ -30,3 +30,7 @@ function _cap () {
30 30
 }
31 31
 
32 32
 compctl -K _cap cap
33
+
34
+function remote_console() {
35
+  /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
36
+}