Skip to content

Instantly share code, notes, and snippets.

View Gerrit-K's full-sized avatar

Gerrit Kieffer Gerrit-K

  • Düsseldorf, Germany
  • 18:13 (UTC +02:00)
View GitHub Profile
@Gerrit-K
Gerrit-K / dbxctx.sh
Last active May 8, 2026 18:53
dbxctx - a kubectx-like profile switcher for Databricks
# File-backed Databricks profile switcher
_DATABRICKS_PROFILE_FILE="${HOME}/.databricks_active_profile"
# Load persisted profile on shell startup
if [[ -f "$_DATABRICKS_PROFILE_FILE" ]]; then
export DATABRICKS_CONFIG_PROFILE="$(cat "$_DATABRICKS_PROFILE_FILE")"
fi
dbxctx() {
if [[ -z "$1" ]]; then