Commit 5c270661 authored by nimrod's avatar nimrod
Browse files

GitLab CLI config.

parent 6cc39619
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+15 −0
Original line number Diff line number Diff line
@@ -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' >> '$@'