Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save NotAShelf/07a455e676f0e4af802a83cfc4ef98b9 to your computer and use it in GitHub Desktop.

Select an option

Save NotAShelf/07a455e676f0e4af802a83cfc4ef98b9 to your computer and use it in GitHub Desktop.

Revisions

  1. NotAShelf revised this gist Jul 2, 2021. 1 changed file with 23 additions and 18 deletions.
    41 changes: 23 additions & 18 deletions pbcopy-and-pbpaste-in-arch-linux.md
    Original 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.

    $> `pacman -S xsel`

    ```sh
    pacman -S xsel
    ```
    Then create aliases.

    `alias pbcopy='xsel --clipboard --input'`
    `alias pbpaste='xsel --clipboard --output'`

    ```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:

    `nano ~/.bashrc`
    **For Bash:**
    ```sh
    nano ~/.bashrc
    ```
    and paste
    `alias pbcopy='xsel --clipboard --input'`
    `alias pbpaste='xsel --clipboard --output'`

    For ZSH:
    ` nano .zshrc`
    ```
    alias pbcopy='xsel --clipboard --input'
    alias pbpaste='xsel --clipboard --output'
    ```
    **For ZSH:**
    ```sh
    nano .zshrc
    ```
    and paste
    `alias pbcopy='xsel --clipboard --input'`
    `alias pbpaste='xsel --clipboard --output'`

    ```sh
    alias pbcopy='xsel --clipboard --input'
    alias pbpaste='xsel --clipboard --output'
    ```
  2. NotAShelf revised this gist Jun 23, 2021. 1 changed file with 20 additions and 3 deletions.
    23 changes: 20 additions & 3 deletions pbcopy-and-pbpaste-in-arch-linux.md
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,26 @@

    First you need the 'xsel' package.

    $> pacman -S xsel
    $> `pacman -S xsel`

    Then create aliases.

    alias pbcopy='xsel --clipboard --input'
    alias pbpaste='xsel --clipboard --output'
    `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'`

  3. @chriscandy chriscandy revised this gist Mar 12, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions pbcopy-and-pbpaste-in-arch-linux.md
    Original 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.
  4. @chriscandy chriscandy created this gist Mar 12, 2015.
    9 changes: 9 additions & 0 deletions pbcopy-and-pbpaste-in-arch-linux.md
    Original 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'