Forked from aarnone/pbcopy-and-pbpaste-in-arch-linux.md
Last active
February 7, 2025 14:43
-
-
Save NotAShelf/07a455e676f0e4af802a83cfc4ef98b9 to your computer and use it in GitHub Desktop.
Revisions
-
NotAShelf revised this gist
Jul 2, 2021 . 1 changed file with 23 additions and 18 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,27 +1,32 @@ # Get pbcopy and pbpaste in Arch Linux First you need the 'xsel' package. ```sh pacman -S xsel ``` Then create aliases. ```sh alias pbcopy='xsel --clipboard --input' alias pbpaste='xsel --clipboard --output' ``` ### (Optional) If you would like to make your aliases permanent, you need to add them to `~/.bashrc` **For Bash:** ```sh nano ~/.bashrc ``` and paste ``` alias pbcopy='xsel --clipboard --input' alias pbpaste='xsel --clipboard --output' ``` **For ZSH:** ```sh nano .zshrc ``` and paste ```sh alias pbcopy='xsel --clipboard --input' alias pbpaste='xsel --clipboard --output' ``` -
NotAShelf revised this gist
Jun 23, 2021 . 1 changed file with 20 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,26 @@ First you need the 'xsel' package. $> `pacman -S xsel` Then create aliases. `alias pbcopy='xsel --clipboard --input'` `alias pbpaste='xsel --clipboard --output'` ### (Optional) If you would like to make your aliases permanent, you need to add them to `~/.bashrc` For Bash: `nano ~/.bashrc` and paste `alias pbcopy='xsel --clipboard --input'` `alias pbpaste='xsel --clipboard --output'` For ZSH: ` nano .zshrc` and paste `alias pbcopy='xsel --clipboard --input'` `alias pbpaste='xsel --clipboard --output'` -
chriscandy revised this gist
Mar 12, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ # Get pbcopy and pbpaste in Arch Linux First you need the 'xsel' package. $> pacman -S xsel Then create aliases. -
chriscandy created this gist
Mar 12, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # Get pbcopy and pbpaste in Arch Linux First you need the 'xsel' package. $> pacman -S xsel Then create aliases. alias pbcopy='xsel --clipboard --input' alias pbpaste='xsel --clipboard --output'