diff options
author | Robby Russell <robby@planetargon.com> | 2010-06-03 12:55:07 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-06-03 12:55:07 -0700 |
commit | 89bd2bf317fe458c6a6154824823670dd2d32660 (patch) | |
tree | 3b6caa59af6f9cbe201095ed5a573ab37827c96f /plugins | |
parent | 455669e97606bb512b9f69fc1ed9b8fea5105a33 (diff) | |
download | zsh-89bd2bf317fe458c6a6154824823670dd2d32660.tar.gz zsh-89bd2bf317fe458c6a6154824823670dd2d32660.tar.bz2 zsh-89bd2bf317fe458c6a6154824823670dd2d32660.zip |
Moving some rails and osx-specific functions to their corresponding plugin files
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/osx.plugin.zsh | 11 | ||||
-rw-r--r-- | plugins/rails.plugin.zsh | 4 |
2 files changed, 15 insertions, 0 deletions
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 )" +} |