Software Alternatives, Accelerators & Startups

Organizing Multiple Git Identities

Lazydocker Starship (Shell Prompt)
  1. A simple terminal UI for docker and docker-compose, written in Go with the gocui library.

    #DevOps Tools #Developer Tools #Kubernetes 24 social mentions

  2. This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
    [includeIf "hasconfig:remote.<i>.url:https://example.com/*"].

    #Software Development #Software Development Tools #Web Development Tools 2420 social mentions

  3. Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, and Powershell.
    Pricing:
    • Open Source
    I use conditional includes for this, but I also add a single letter describing which Git identity I'm currently using to my PS1 so that it appears before $ in my shell prompt. This prevents me from committing code with the wrong identity, in case I'm using a git checkout that's anywhere not covered by the conditional include rules. I use Starship (https://starship.rs) to manage my prompt, and wrote a short script that only runs if I'm somewhere in a git repo, and if so finds my Git user's email and looks up the corresponding letter in an associative array declared in my ~/.config/starship-zsh/.zshenv: <pre><code> git_email=$(git config --get user.email | perl -pe 'chomp if eof').

    #Developer Tools #Programming #Terminal 188 social mentions

Discuss: Organizing Multiple Git Identities

Log in or Post with