Merge pull request #238 from nwinkler/osx-copy-last-command

Added alias for copying the last command to the OS X clipboard.
pull/303/merge
Nils Winkler 2014-10-30 14:32:17 +01:00
commit a4ae8ec6cd
1 changed files with 3 additions and 0 deletions

View File

@ -38,3 +38,6 @@ alias flush='dscacheutil -flushcache'
# Show/hide hidden files (for Mac OS X Mavericks)
alias showhidden="defaults write com.apple.finder AppleShowAllFiles TRUE"
alias hidehidden="defaults write com.apple.finder AppleShowAllFiles FALSE"
# From http://apple.stackexchange.com/questions/110343/copy-last-command-in-terminal
alias copyLastCmd='fc -ln -1 | awk '\''{$1=$1}1'\'' ORS='\'''\'' | pbcopy'