Merge pull request #424 from musophob/master

Add osx aliases for quicklook, volume, say.
pull/428/head
Travis Swicegood 2015-03-20 11:54:54 -07:00
commit e800a684f9
1 changed files with 11 additions and 0 deletions

View File

@ -41,3 +41,14 @@ alias hidehidden="defaults write com.apple.finder AppleShowAllFiles FALSE"
# From http://apple.stackexchange.com/questions/110343/copy-last-command-in-terminal # From http://apple.stackexchange.com/questions/110343/copy-last-command-in-terminal
alias copyLastCmd='fc -ln -1 | awk '\''{$1=$1}1'\'' ORS='\'''\'' | pbcopy' alias copyLastCmd='fc -ln -1 | awk '\''{$1=$1}1'\'' ORS='\'''\'' | pbcopy'
# Use Finder's Quick Look on a file (^C or space to close)
alias ql='qlmanage -p 2>/dev/null'
# Mute/Unmute the system volume. Plays nice with all other volume settings.
alias mute="osascript -e 'set volume output muted true'"
alias unmute="osascript -e 'set volume output muted false'"
# Pin to the tail of long commands for an audible alert after long processes
## curl http://downloads.com/hugefile.zip; lmk
alias lmk="say 'Process complete.'"