automate/020_gitlab-api.sh

20 lines
544 B
Bash

#!/bin/bash
# https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html
# DEST=${1:-/etc/skel}
DEST=${HOME}
GITLAB_PA_TOKEN="yEum5b7vNJ9mOjxUp7NJS1fiyWJFlSvUeFiBeljv"
# PLugins that Use COHERE_API_KEYs get called early so so we need to put them
# in .zshrc.pre-plugins.d so they can be loaded before the plugins are loaded.
cat <<-EOF | sudo tee "${DEST}"/.zshrc.pre-plugins.d/009_gitlab.zsh
export GITLAB_PA_TOKEN="${GITHUB_PA_TOKEN}"
EOF
# a couple of github specific packages
apt-get install -y gitlab-cl
apt-get -f install