Skip to content

Instantly share code, notes, and snippets.

@vinbarnes
Created August 14, 2008 16:00
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 vinbarnes/5445 to your computer and use it in GitHub Desktop.
Save vinbarnes/5445 to your computer and use it in GitHub Desktop.
[barnekr@pibook:~]$ type nt
nt is aliased to `. ~/new_term.sh'
[barnekr@pibook:~]$ cat /Users/barnekr/new_term.sh
#!/bin/sh
#
# Open a new terminal in the cwd
#
CWD=`pwd`
osascript<<END
set thePath to "$CWD"
set myPath to (POSIX file thePath as alias)
try
tell application "Terminal"
activate
do script with command "cd \"" & thePath & "\""
end tell
end try
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment