Skip to content
Snippets Groups Projects
Commit 5c270661 authored by nimrod's avatar nimrod
Browse files

GitLab CLI config.

parent 6cc39619
Branches
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ export PIPENV_DEFAULT_PYTHON_VERSION ...@@ -55,6 +55,7 @@ export PIPENV_DEFAULT_PYTHON_VERSION
export PIPENV_MAX_DEPTH=5 export PIPENV_MAX_DEPTH=5
export PS1='\u@\h:\w\$ ' export PS1='\u@\h:\w\$ '
export PYTHONSTARTUP=~/.config/pythonrc.py export PYTHONSTARTUP=~/.config/pythonrc.py
export PYTHON_GITLAB_CFG=~/.config/python-gitlab.cfg
export REDISCLI_HISTFILE="$HOME/Documents/.rediscli_history" export REDISCLI_HISTFILE="$HOME/Documents/.rediscli_history"
export VAGRANT_DEFAULT_PROVIDER="virtualbox" export VAGRANT_DEFAULT_PROVIDER="virtualbox"
# shellcheck disable=SC1090,SC1091 # shellcheck disable=SC1090,SC1091
......
...@@ -121,3 +121,18 @@ generated: .ssh/localhost.pub ...@@ -121,3 +121,18 @@ generated: .ssh/localhost.pub
generated: .ssh/authorized_keys generated: .ssh/authorized_keys
.ssh/authorized_keys: .ssh/localhost.pub .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\"'" -$(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' >> '$@'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment