3 ms·
This is not mine. I can’t remember where I found it. Apologies for no attribution (Mac): #!/usr/bin/env bash function cdf() { #: Change working directory
by alsetmusic 4y ago
This is not mine. I can’t remember where I found it. Apologies for no attribution (Mac):
#!/usr/bin/env bash
function cdf() {
#: Change working directory to the top-most Finder window location
cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')";
}
- deleted 4y ago[deleted]
- lioeters 4y agoOoh, that's nice. I have the opposite direction: # Open current working directory in Finder alias of='open -a Finder ./'
- alsetmusic 4y agoI have the same, but mapped to ‘F’. Thank you to whoever submitted that to macosxhints.com many years ago.
- sathishvj 4y agoWouldn't "open ." work just the same?