Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 627 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 627 Bytes

Copy token

This simple program copy github token from local file to clipboard. It gives you more fast using Git CLI

Dependencies

  • xclip available in package managers, such as apt, pacman

Installation

First way

  1. git clone https://github.com/AlGaRitm2020/copy_token
  2. cd copy_token
  3. mv copy_token /usr/bin/cptoken
  4. sudo chmod +x /usr/bin/cptoken

Second way

Add alias cptoken="cat ~/PATH/TO/YOUR/TOKEN/token | xclip -sel clip" to your shell config. If you are using bash, this file is ~/.bashrc

How to use

Run in terminal command cptoken and your token will be copied to clipboard