Skip to content

Instantly share code, notes, and snippets.

@ApoTheOne
Last active January 24, 2019 09:50
Show Gist options
  • Save ApoTheOne/c13a3c56db677450b7c3773667e19608 to your computer and use it in GitHub Desktop.
Save ApoTheOne/c13a3c56db677450b7c3773667e19608 to your computer and use it in GitHub Desktop.
Useful Bash Commands
# Using Clip:
```
git branch | clip
dir | clip
```
# Copy thing.txt to clipboard
```cat ~/.bashrc > /dev/clipboard```
# Put contents of clipboard into file.txt
```cat /dev/clipboard > file.txt```
[Reference](https://stackoverflow.com/questions/18880062/piping-output-from-git-bash-to-clipboard)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment