This gist shows how to set up the 'open finder here' shortcut (opf) in a bash or zsh shell. This tutorial is for MacOS, since MacOS uses Finder.
Open the .zshrc configuration file.
nano ~/.zshrcAdd the following line:
alias opf='open -a finder $(pwd)'Optionally, substitute the opf part with your own shortcut command.
Save and exit. Make sure to type exit in your current terminal to re-apply the terminal configuration.
Open the .bashrc configuration file.
nano ~/.bashrcAdd the following line:
alias opf='open -a finder $(pwd)'Optionally, substitute the opf part with your own shortcut command.
Save and exit. Make sure to type exit in your current terminal to re-apply the terminal configuration.