Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tab () {
- CURRENT_RVM=$rvm_ruby_string
- 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; rvm $CURRENT_RVM; $*" in window 1
- end tell
- tell application "System Events"
- tell process "Terminal" to keystroke "{" using command down
- end
- EOF
- }
Add Comment
Please, Sign In to add comment