This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Start or recycle SSH agent | |
@echo off | |
:: Set the SSH_KEY if passed by argument, otherwise, use default file | |
IF NOT "%1" == "" ( | |
SET SSH_KEY=%1 | |
) ELSE IF "%SSH_KEY%" == "" ( | |
SET SSH_KEY=%USERPROFILE%\.ssh\id_rsa | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gitflow (AVH Edition) installer for Git For Windows, by Danny Boisvert | |
# Licensed under the same restrictions as git-for-windows' build-extra: | |
# http://github.com/git-for-windows/build-extra/blob/master/git-extra/PKGBUILD | |
echo | |
echo "Installing Gitflow (AVH Edition) & Gitflow (AVH Edition) completion..." | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============= | |
// Configuration | |
// ============= | |
var bConfigUseParentForGitRootDir = false; // Use parent directory from this script's path instead of searching in PATH environment variable | |
var bConfigSetGitRootDir = false; // Return the full path "Git" directory | |
var sConfigGitRootDirEnv = "PROCESS"; // Enviroment target for "bConfigSetGitRootDir" | |
var bConfigSetGitBinDir = false; // Return the full path to "bin" directory relative to "Git" directory | |
var sConfigGitBinDirEnv = "PROCESS"; // Enviroment target for "bConfigSetGitBinDir" | |
var bConfigSetHome = false; // Will create a "HOME" variable in the specified environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
pushd %~dp0 | |
:: Start and set persistent environment variables for SSH agent | |
for /f %%a in ('cscript.exe /nologo ^"..\etc\start-ssh-agent-persistent.js^" /home') do ( | |
@set %%a | |
) | |
:: Set/reset SSH keys for current SSH agent | |
for /f "delims=" %%a in ('cscript.exe /nologo ^"..\etc\start-ssh-agent-persistent.js^" /bindir') do ( | |
call "%%a\ssh-add.exe" | |
) |
NewerOlder