hbang / TermHere

Finder extension for opening a terminal from the current directory
https://hbang.com.au/termhere
Apache License 2.0
109 stars 11 forks source link

Clear terminal with iTerm #8

Open ErikSwan opened 8 years ago

ErikSwan commented 8 years ago

It looks like iTerm handles opening URLs by cd-ing to the directory. However, this line is then left in the new terminal tab/window.

If the user has iTerm selected as the terminal, would it be possible to issue a "clear" command after cd-ing to the directory? It looks like you already have some terminal-specific AppleScript in the source, although I can't figure out where/how it's being executed.

kirb commented 8 years ago

That code isn’t yet in use; and whether it will be released in 1.2 or not depends on whether Apple will accept or deny my request for a sandbox rule exception (sandboxed apps usually can’t send Apple Events).

I could definitely implement that as a preference (I personally prefer to see the cd command as well as the “last login” line).