This will return the full Git commit SHA of whichever branch is currently checkedout.
Dump the snippet into terraform console
(run from within a Git repo) to see for yourself.
<# | |
.SYNOPSIS | |
Locates Java versions and optionally sets JAVA_HOME and JRE_HOME. | |
.DESCRIPTION | |
The Find-Java function uses PATH, JAVA_HOME, JRE_HOME and Windows Registry to retrieve installed Java versions. | |
If run with no options, the first Java found is printed on the console. | |
.PARAMETER Vendor | |
Selects Java vendor, currently supports Oracle, OpenJDK and IBM. Defaults to Any. | |
.PARAMETER Architecture | |
What processor architecture to match. Valid options are 32, 64, Match and All. Match detects what integer size is used for the PowerShell process, and matches the architecture. If Wow64 is available, 64 bit versions of Java are selected first. |
-- This is a script to provide git branch autocompletion to clink | |
-- which can be used in windows cmd, conemu and cmder | |
-- | |
-- Ctrl-Q in conemu to reload Clink Lua scripts | |
-- Clink match generators: https://github.com/mridgers/clink/blob/master/docs/clink.md#user-content-match-generators | |
-- based on: | |
-- https://gist.github.com/sweiss3/9858452 | |
-- https://gist.github.com/bhank/a85113b06632fc52f053533f81c2da2d |
;;; ob-powershell.el --- org-babel functions for powershell evaluation | |
;; Authors: Chris Bilson | |
;; Keywords: literate programming, reproducible research | |
;; Homepage: http://orgmode.org | |
;;; Commentary: | |
;; Org-Babel support for evaluating powershell source code. |
# Put this code in your PowerShell profile script | |
# This requires the MSTerminalSettings module which you can download with: | |
# Install-Module MSTerminalSettings -Scope CurrentUser -Repository PSGallery | |
Import-Module MSTerminalSettings | |
$msTermProfileName = 'pwsh' # Replace with whatever Terminal profile name you're using | |
$msTermProfile = Get-MSTerminalProfile -Name $msTermProfileName | |
$script:bombThrown = $false | |
function prompt { | |
if ($? -eq $false) { |
This will return the full Git commit SHA of whichever branch is currently checkedout.
Dump the snippet into terraform console
(run from within a Git repo) to see for yourself.