Skip to content

MadLid

Stuff of Interest To Us

Recent Posts

  • Access Android Emulator’s File System November 6, 2015
  • OSX – Copy directory path to clipboard from Terminal October 9, 2015
  • Reverting to a previous version of a file using git October 7, 2015
  • Techmeme – When Less is More February 13, 2015
  • What Apple really thinks of Windows! February 5, 2015

Recent Comments

    Archives

    • November 2015
    • October 2015
    • February 2015
    • November 2014
    • October 2014
    • August 2014

    Categories

    • Development
    • git
    • JavaScript
    • OSX
    • Terminal
    • Uncategorized

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

    Category: Terminal

    OSX – Copy directory path to clipboard from Terminal

    Define the following alias:

    alias cppwd="__CPCD=\`pwd\`; echo -n \$__CPCD | pbcopy; echo Copied \'\$__CPCD\' to clipboard; unset __CPCD"

     

    Posted on October 9, 2015October 9, 2015Categories Development, OSX, TerminalLeave a comment on OSX – Copy directory path to clipboard from Terminal
    Proudly powered by WordPress