Skip to content

Instantly share code, notes, and snippets.

@jellyjellyrobot
Last active March 4, 2017 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jellyjellyrobot/cd58487fd186f81f75b90eeedc618def to your computer and use it in GitHub Desktop.
Save jellyjellyrobot/cd58487fd186f81f75b90eeedc618def to your computer and use it in GitHub Desktop.
GNS3 console configuration for OSX, Iterm2v3, and a shell that does not quit terminal negotiating
osascript
-e 'tell application "iTerm"'
-e 'activate'
-e 'if (count of windows) = 0 then'
-e ' set t to (create window with profile "cisco")'
-e 'else'
-e ' set t to current window'
-e 'end if'
-e 'tell t'
-e ' set newTab to (create tab with profile "cisco" command "sh")'
-e ' tell current session'
-e ' set name to "%d"'
-e ' write text "stty raw; nc %h %p"'
-e ' write text "\r\n"'
-e ' end tell'
-e 'end tell'
-e 'end tell'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment