diff options
-rw-r--r-- | lib/functions.zsh | 16 | ||||
-rw-r--r-- | plugins/osx.plugin.zsh | 11 | ||||
-rw-r--r-- | plugins/rails.plugin.zsh | 4 |
3 files changed, 15 insertions, 16 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh index 35c3f3ce7..fcbe994be 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -21,10 +21,6 @@ function preexec { title $cmd[1]:t "$cmd[2,-1]" } -function remote_console() { - /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )" -} - function zsh_stats() { history | awk '{print $2}' | sort | uniq -c | sort -rn | head } @@ -37,18 +33,6 @@ function upgrade_oh_my_zsh() { /bin/sh $ZSH/tools/upgrade.sh } -function tab() { - osascript 2>/dev/null <<EOF - tell application "System Events" - tell process "Terminal" to keystroke "t" using command down - end - tell application "Terminal" - activate - do script with command "cd \"$PWD\"; $*" in window 1 - end tell -EOF -} - function take() { mkdir -p $1 cd $1 diff --git a/plugins/osx.plugin.zsh b/plugins/osx.plugin.zsh new file mode 100644 index 000000000..fce88c796 --- /dev/null +++ b/plugins/osx.plugin.zsh @@ -0,0 +1,11 @@ +function tab() { + osascript 2>/dev/null <<EOF + tell application "System Events" + tell process "Terminal" to keystroke "t" using command down + end + tell application "Terminal" + activate + do script with command "cd \"$PWD\"; $*" in window 1 + end tell +EOF +}
\ No newline at end of file diff --git a/plugins/rails.plugin.zsh b/plugins/rails.plugin.zsh index b7f62a0c6..45bebb722 100644 --- a/plugins/rails.plugin.zsh +++ b/plugins/rails.plugin.zsh @@ -30,3 +30,7 @@ function _cap () { } compctl -K _cap cap + +function remote_console() { + /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )" +} |