Created
August 14, 2008 16:00
-
-
Save vinbarnes/5445 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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