DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57TCRTEg1440866 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 57TCRTEg1440866 X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAE683858428 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CAE683858428 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756470393; cv=none; b=k+U9MiDqBmzSkr4G9z9Qn/dOVxHILtE8DNgkU3IdDCm9PxhmNvCLU8HiYwh48eKsJGHPkATGo/9bZam++yL/eJle4R8nDKhpj/FlqwwWk0oKk0zdM0uUpohn5C76THQSlJS0EWTsPgtNhd1uUL1Pe3brdDDX4f79UdwmZu93NqI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756470393; c=relaxed/simple; bh=n4tsmHIDHbqwu33XvqmXjb/KVA7M0hnzCxbVvnaBCRQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=QoSCKm9BzT5qN+6Jfn0FlAqYXtWdLbXPwApQpVRidRl4s2zXxuQCs8/WnuTGxc3f/Jtu0ev9nvAvVa57x47FSUCqjjjBX02UMngJhn+anzv1F6UaiKKTRYnM3XLmQWGz5RzDiFWEGM8l+RN0gEBQkDwFwH7Rc2ObURipphXXvjI= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756470363; x=1757075163; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=n4tsmHIDHbqwu33XvqmXjb/KVA7M0hnzCxbVvnaBCRQ=; b=gWZcBwzuT7X/Dx4kosGShahU5FjsNxr+iJ1KgyXgHQ6ARYicQg5huRc39j5CKxd2ZQ GGgQR08gqglUcx2FhtPAqDsoO+Zo/y/DXiPn6aPtWw8TkdcgVn2ucaIQ9Dvamj0h+++6 SZJwByMrWsQJXGJTNCrjAv60x3X/YnmSIvJFOnGPOCOzuige7/K5SHeAbd6qjNhOUxMP SjKupyDq7O8zfnBR8cygwDTrLMztKjYrX6wNnNTQXAT5fgcDvW3dH09vZTZKtLqBlLxJ i7TKZ45hLa77413K577jKAV2Qn9Nnymuvil/+1vvj6QDE4lU4weLUL6nphrhrlqq/Zsn qJcw== X-Gm-Message-State: AOJu0YxLi0Wj288C6QOqeE+dqCsbXSBWP3VUIo3nyAkf30J7bsNPQ7/9 VLfMk1r4i5gj4si23LkAF+CKy/v5IG/IvjO/JqmpVlmLqGXnupvt4DFB5N9aHZAT34QOtF42DYn E4l/7RM2pa0KFeDOznCfUUO7uHnRxB44qhw== X-Gm-Gg: ASbGncvi8fESpQZPnTMdO9W0oGrl8Src9Tc5iR14YYGRnesPBVbP2qU/e9Ly1LpCX1H oCo4mVL3+rx2EWME6lXHBvZFvL4sBguOFVOOsgXvH+jAMLmPPb9Ve8hqDAmhr0DO70hXqS80D4n 4M67AJbyglUDlHU731Qxb/dBJN/kQdqnb+P0bOOamXtl454jkJ9gxnqMABXV3i0We81YPKphI25 1WHXWpp1Nbgpx7IomfxxK8RXj+9 X-Google-Smtp-Source: AGHT+IGLsnhUqdbClsMGdvZ6OBoMeitDSRBbX4vjAnvbV4Gewx+qTjdRaqdm1L9QGE58LFlcNZ5p5ezaSxJhx5sOUzA= X-Received: by 2002:a05:622a:1a89:b0:4b2:992b:c88d with SMTP id d75a77b69052e-4b2aaaa67demr298297921cf.20.1756470362747; Fri, 29 Aug 2025 05:26:02 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 29 Aug 2025 08:25:51 -0400 X-Gm-Features: Ac12FXxTF5cDjO0_un6u3cq_8-gjdf-mk8hPeEVEf_Jh8l36kMNvY0VxL3JjqLI Message-ID: Subject: git aliases in cygwin To: cygwin AT cygwin DOT com X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: J via Cygwin Reply-To: J Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Hello! I'm trying understand the proper way to acheive a git-decorated-prompt under cygwin. When using git-bash in Windows, it automatically sets the prompt to reflect the current repositor branch when cd'ing to a folder that contains a git sandbox. To obtain this effect under Ubuntu, it was necessary to set the PS1 (prompt) variable in ~/.bashrc to the following: export PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ ' This appears to work by using the aliases that the git package installs. Since Ubuntu is general-purpose and not for a specific use like git-bash is, it does not automatically set the prompt for you. For Gentoo, setting the PS1 variable in ~/.bashrc did not work, because even after installing git, it did not install its aliases in the profiles. So for Gentoo, putting the following line in ~/.bashrc made the prompt variable acheive the desired effect: . /usr/share/git/git-prompt.sh Now on to Cygwin. Even though I've installed git, the git aliases don't seem to be present, or at least I can't figure out how to get them set. Thank you for reading, and thank you in advance -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple