Skip to content

Instantly share code, notes, and snippets.

@vprusa
Created March 3, 2020 13:59
Show Gist options
  • Save vprusa/20fecfbb1094d6e1dfb98eb2a7bc5fda to your computer and use it in GitHub Desktop.
Save vprusa/20fecfbb1094d6e1dfb98eb2a7bc5fda to your computer and use it in GitHub Desktop.
Aliases for copypaste from terminal to clipboard
# usage
# ``` echo "hello" | _c ```
# ctrl+shift+v | ``` _p ```
_c(){
cat | xclip -r -selection clipboard
}
_p(){
xclip -selection clipboard -o
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment