From 5c2706617f04e5898573d085af582b04e06f3590 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 15 Jul 2021 08:58:30 +0300 Subject: [PATCH] GitLab CLI config. --- .bashrc | 1 + generated.mk | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.bashrc b/.bashrc index b4f8a97..5570eec 100644 --- a/.bashrc +++ b/.bashrc @@ -55,6 +55,7 @@ export PIPENV_DEFAULT_PYTHON_VERSION export PIPENV_MAX_DEPTH=5 export PS1='\u@\h:\w\$ ' export PYTHONSTARTUP=~/.config/pythonrc.py +export PYTHON_GITLAB_CFG=~/.config/python-gitlab.cfg export REDISCLI_HISTFILE="$HOME/Documents/.rediscli_history" export VAGRANT_DEFAULT_PROVIDER="virtualbox" # shellcheck disable=SC1090,SC1091 diff --git a/generated.mk b/generated.mk index bd0a6aa..d29c740 100644 --- a/generated.mk +++ b/generated.mk @@ -121,3 +121,18 @@ generated: .ssh/localhost.pub generated: .ssh/authorized_keys .ssh/authorized_keys: .ssh/localhost.pub -$(ansible-local) -m authorized_key -a "user=$$(whoami) key='$$(cat .ssh/localhost.pub)' key_options='from=\"127.0.0.1/8\"'" + +generated: .bash_completion.d/python-gitlab +.bash_completion.d/python-gitlab: + -register-python-argcomplete gitlab > $@ + +generated: .config/python-gitlab.cfg +.config/python-gitlab.cfg: + echo '[global]' > '$@' + echo 'default = shore.co.il' >> '$@' + echo 'ssl_verify = true' >> '$@' + echo '' >> '$@' + echo '[shore.co.il]' >> '$@' + echo 'url = https://git.shore.co.il/' >> '$@' + echo "private_token = $$(ph show --field Password 'shore.co.il/GitLab token')" >> '$@' + echo 'api_version = 4' >> '$@' -- GitLab