From edcd44376da9a7c11a89e3103ac5e126ba4b4b43 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Wed, 20 Jul 2022 03:49:35 -0700 Subject: [PATCH] :technologist: Added github personal access token --- aliases | 2 +- bashrc.txt | 3 +++ git_create_repo_from_cli.txt | 1 + zshrc.txt | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 git_create_repo_from_cli.txt diff --git a/aliases b/aliases index 52a8bbd4..78c71e4b 100644 --- a/aliases +++ b/aliases @@ -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}"' diff --git a/bashrc.txt b/bashrc.txt index b6936da4..76d8e24b 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -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 ]] && \ diff --git a/git_create_repo_from_cli.txt b/git_create_repo_from_cli.txt new file mode 100644 index 00000000..42a5fb9c --- /dev/null +++ b/git_create_repo_from_cli.txt @@ -0,0 +1 @@ +curl -u $USER:$GH_TOKEN https://api.github.com/user/repos -d '{"name": "testrepo"}' diff --git a/zshrc.txt b/zshrc.txt index 96977f14..4b7f9a99 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -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