This simple program copy github token from local file to clipboard. It gives you more fast using Git CLI
- xclip available in package managers, such as apt, pacman
- git clone https://github.com/AlGaRitm2020/copy_token
- cd copy_token
- mv copy_token /usr/bin/cptoken
- sudo chmod +x /usr/bin/cptoken
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
Run in terminal command cptoken and your token will be copied to clipboard