Add aliases to osx module
Include aliases for lock screen, screencapture, and system volume.
This commit is contained in:
parent
c34098af20
commit
d3eb4bba81
1 changed files with 10 additions and 0 deletions
|
@ -19,3 +19,13 @@ alias cdf='cd "$(pfd)"'
|
||||||
|
|
||||||
# Pushes directory to the current Finder directory.
|
# Pushes directory to the current Finder directory.
|
||||||
alias pushdf='pushd "$(pfd)"'
|
alias pushdf='pushd "$(pfd)"'
|
||||||
|
|
||||||
|
# Locks screen.
|
||||||
|
alias lock='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend'
|
||||||
|
|
||||||
|
# Saves a screen shot to the current directory with 1s delay for app switching.
|
||||||
|
alias snap="screencapture -T 1 "Screen Shot $(date +'%Y-%m-%d') at $(date +"%I.%M.%S %p").png";"
|
||||||
|
|
||||||
|
# Mutes/Unmutes the system volume.
|
||||||
|
alias mute="osascript -e 'set volume output muted true'"
|
||||||
|
alias unmute="osascript -e 'set volume output muted false'"
|
Loading…
Add table
Reference in a new issue