Add following line into your .zshrc
or .bash_profile
alias lock='/System/Library/CoreServices/Menu\ Extras/user.menu/Contents/Resources/CGSession -suspend'
type lock
in your terminal to lock screen
Add following line into your .zshrc
or .bash_profile
alias lock='/System/Library/CoreServices/Menu\ Extras/user.menu/Contents/Resources/CGSession -suspend'
type lock
in your terminal to lock screen