add aliases for getting login history
- inspired by https://superuser.com/questions/916440/view-all-login-history-on-macbook-pro-running-mac-os-x-10-6-8/1476867#1476867
This commit is contained in:
parent
3ab5d26b16
commit
eaa45cff1e
@ -134,14 +134,14 @@ alias ze='vim ~/.zshrc' # zsh profile editing
|
|||||||
alias zf='vim ~/.zsh_functions' # edit zsh_functions
|
alias zf='vim ~/.zsh_functions' # edit zsh_functions
|
||||||
alias za='vim ~/.zsh_aliases' # edit zsh_aliases
|
alias za='vim ~/.zsh_aliases' # edit zsh_aliases
|
||||||
|
|
||||||
# System info
|
# System Utils
|
||||||
alias systeminfo='neofetch'
|
alias systeminfo='neofetch'
|
||||||
alias monitoring='glances'
|
alias monitoring='glances'
|
||||||
|
|
||||||
# System Utils
|
|
||||||
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend" # Lock the screen (when going AFK)
|
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend" # Lock the screen (when going AFK)
|
||||||
alias reload="exec ${SHELL} -l" # Reload the shell (i.e. invoke as a login shell)
|
alias reload="exec ${SHELL} -l" # Reload the shell (i.e. invoke as a login shell)
|
||||||
alias sc="source $HOME/.zshrc"
|
alias sc="source $HOME/.zshrc"
|
||||||
|
alias lastlogin="log show --style syslog --last 1d | awk '/Enter/ && /unlockUIBecomesActive/ {print \$1 \" \" \$2}'"
|
||||||
|
alias loginhistory='lastlogin'
|
||||||
|
|
||||||
# Infrastructure
|
# Infrastructure
|
||||||
alias awsls='awsls -profile default -region eu-west-1 --attributes tags aws_instance'
|
alias awsls='awsls -profile default -region eu-west-1 --attributes tags aws_instance'
|
||||||
|
Loading…
Reference in New Issue
Block a user