Guest User

Untitled

a guest
Jun 13th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function tab () {
  2. CURRENT_RVM=$rvm_ruby_string
  3. osascript 2>/dev/null <<EOF
  4. tell application "System Events"
  5. tell process "Terminal" to keystroke "t" using command down
  6. end
  7. tell application "Terminal"
  8. activate
  9. do script with command "cd $PWD; rvm $CURRENT_RVM; $*" in window 1
  10. end tell
  11. tell application "System Events"
  12. tell process "Terminal" to keystroke "{" using command down
  13. end
  14. EOF
  15. }
Add Comment
Please, Sign In to add comment