3 ms·
Especially open . if you need to drag a file somewhere. One thing that kind of breaks my muscle memory here is the opposite, something like firefox f
by computerfriend 3y ago
Especially
open .
if you need to drag a file somewhere. One thing that kind of breaks my muscle memory here is the opposite, something like
firefox file.html
doesn't work and you have to fiddle with the arguments to get open to launch a non-default application.
- alanpearce 3y agoIf you set alias firefox="open -a Firefox" This will work
- zora_goron 3y agoI use `open .` to open up a Finder window of the directory I'm currently in using Terminal so frequently that I've set up an alias for it -- alias op='open .'
- ojosilva 3y agoIt took me a while but I finally got open to open folders in a new Finder tab instead of opening a new window each time. function opent () { what=${1:-`pwd`} what=$(cd "$what"; pwd) osascript -e "tell application \"Finder\" activate set t to target of Finder window 1 set toolbar visible of window 1 to true end tell tell application \"System Events\" keystroke \"t\" using command down end tell tell application \"Finder\" set target of Finder window 1 to POSIX file \"$what\" end tell" > /dev/null } ## opens current dir $ opent . ## same $ opent