Skip to content

Instantly share code, notes, and snippets.

@fworks
fworks / install-zsh-windows-git-bash.md
Last active January 13, 2025 14:24
Zsh / Oh-my-zsh on Windows Git Bash
@pysysops
pysysops / custom_awsvault.p10k.zsh.part
Last active October 26, 2023 09:52
Powerlevel10k custom prompt config for use with aws-vault https://github.com/99designs/aws-vault
##############[ custom_awsvault: current aws account (https://github.com/99designs/aws-vault) ]###############
awsvault_prompt() {
if [ ! -z "${AWS_VAULT-}" ]; then
echo -n " ${AWS_VAULT-} "
fi
}
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT="awsvault_prompt"
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_FOREGROUND="black"
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_BACKGROUND="yellow"
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_VISUAL_IDENTIFIER_EXPANSION=' ☁️'
@raymyers
raymyers / gradle-wrapper.xml
Created December 10, 2010 04:30
Example of calling Gradle from Ant
<project name="gradle-wrapper" default="" basedir=".">
<description>
</description>
<!-- set global properties for this build -->
<property environment="env" />
<property name="gradle.executable" location="${env.GRADLE_HOME}/bin/gradle" />
<target name="jar">
<exec executable="${gradle.executable}" dir=".">
<arg value="jar" />