mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
cleaned up the formatting
This commit is contained in:
parent
cb19c3af57
commit
ca447667f9
1 changed files with 25 additions and 25 deletions
|
|
@ -29,34 +29,34 @@ fi
|
||||||
|
|
||||||
if [[ $TERM_PROGRAM != iTerm.app ]]; then
|
if [[ $TERM_PROGRAM != iTerm.app ]]; then
|
||||||
|
|
||||||
osascript -e "tell application \"System Events\"
|
osascript -e " tell application \"System Events\"
|
||||||
tell process \"Terminal\" to keystroke \"t\" using command down
|
tell process \"Terminal\" to keystroke \"t\" using command down
|
||||||
end
|
end
|
||||||
tell application \"Terminal\"
|
tell application \"Terminal\"
|
||||||
activate
|
activate
|
||||||
do script with command \"cd \\\"$ThisDirectory\\\"\" in window 1
|
do script with command \"cd \\\"$ThisDirectory\\\"\" in window 1
|
||||||
end tell"
|
end tell"
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
osascript -e " tell app \"Finder\"
|
osascript -e " tell app \"Finder\"
|
||||||
activate
|
activate
|
||||||
tell application \"iTerm\"
|
tell application \"iTerm\"
|
||||||
-- make new terminal
|
make new terminal
|
||||||
tell the front terminal
|
tell the front terminal
|
||||||
activate current session
|
activate current session
|
||||||
launch session \"Default Session\"
|
launch session \"Default Session\"
|
||||||
tell the current session
|
tell the current session
|
||||||
write text \"cd \\\"$PWD\\\"; cd \\\"$ThisDirectory\\\"\"
|
write text \"cd \\\"$PWD\\\"; cd \\\"$ThisDirectory\\\"\"
|
||||||
end tell
|
end tell
|
||||||
end tell
|
end tell
|
||||||
end tell
|
end tell
|
||||||
tell application \"Finder\"
|
tell application \"Finder\"
|
||||||
activate
|
activate
|
||||||
end tell
|
end tell
|
||||||
tell application \"iTerm\"
|
tell application \"iTerm\"
|
||||||
activate
|
activate
|
||||||
end tell
|
end tell
|
||||||
end tell"
|
end tell"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue