The custom terminal command I use the most
Update 22-04-2025
Since I have been using Cursor as my main code editor I've update the command.
So I am using https://ohmyz.sh/ and this I is my 'OP' command now :P so vim ~/.zshrc
and updated this.
export EDITOR="open -a Cursor"
alias op="open -a Cursor"
Original
About a year or so now I have been using a terminal command that open's the input in my editor of choice.
That is PHPStorm as of this writing. This command truly helps me work more quickly because I consider myself to be a keyboard power user.
The command is simple:
op .
It looks rather 'OP' doesn't it? :P
In my Z shell (also known as zsh) config cat ~/.zshrc
I've added the following alias:
alias op="open -a PhpStorm"
This creates an alias for the open command. Where the "first argument" is indicated by a .
dot. In unix, this refers to the current directory.
So, I tell PHPStorm to open the current directory please thanks bye.
That's all, then! I hope that this will benefit you as well!
- Next: HTML2Canvas
- Previous: Naming input fields and descriptions in a CMS.