Skip to content

Instantly share code, notes, and snippets.

@drkarl
Created August 17, 2018 11:15
Show Gist options
  • Save drkarl/960188f7badcdd8b3178f67bee3db2a3 to your computer and use it in GitHub Desktop.
Save drkarl/960188f7badcdd8b3178f67bee3db2a3 to your computer and use it in GitHub Desktop.

Revisions

  1. drkarl created this gist Aug 17, 2018.
    17 changes: 17 additions & 0 deletions copy_clipboard_cygwin.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #Copy to your .zshrc

    #Copy to clipboard
    function cp(){
    echo $1 > /dev/clipboard
    }

    #Paste from clipboard
    function pb(){
    cat /dev/clipboard
    }

    #Copy jira from task to clipboard
    function cpjira(){
    echo `task _get "$1".jira` > /dev/clipboard
    }