🧑‍💻 Added github personal access token

This commit is contained in:
z3rOR0ne 2022-07-20 03:49:35 -07:00
parent 10385fff58
commit edcd44376d
4 changed files with 8 additions and 1 deletions

View file

@ -322,7 +322,7 @@ alias ducky="ddgr -jx -n 25 --unsafe --proxy 127.0.0.1:8118"
alias aur='ddgr \!aur "${1}"'
alias archwiki='ddgr \!archwiki "${1}"'
alias wiki='ddgr \!w "${1}"'
alias gh='ddgr --gb \!gh "${1}"'
# alias gh='ddgr --gb \!gh "${1}"'
# must have account to use gitlab bang
alias glab='ddgr --gb \!glab "${1}"'
alias red='ddgr \!r "${1}"'

View file

@ -188,7 +188,10 @@ if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integr
# END_KITTY_SHELL_INTEGRATION
alias home="xclear && cd /home/brian && clear && history -c && hash -r"
# Various source files (do not place at end of zshrc/bashrc)
source ~/.aliases
source ~/.gh_pat
source /home/brian/.bash_completions/typer.sh
# Use bash-completion, if available
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \

View file

@ -0,0 +1 @@
curl -u $USER:$GH_TOKEN https://api.github.com/user/repos -d '{"name": "testrepo"}'

View file

@ -144,7 +144,10 @@ bindkey -v
# alias home="xclear && cd /home/brian && clear && history -p && hash -r && /usr/bin/rm $HOME/.zsh_history && touch $HOME/.zsh_history"
alias home="cd $HOME && $HOME/scripts/zhome.sh && unset sdir"
# Various source files (do not place at end of zshrc/bashrc)
source ~/.aliases
# github personal access token
source ~/.gh_pat
# Plugins (that need to be at the end of the zshrc script)
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh