Instance | Branch |
---|
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
git_branch() { | |
local branch=$(git --no-optional-locks branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/^* (*\([^)]*\))*/\1/') | |
if [[ -n $branch ]]; then | |
if [[ -z $(git --no-optional-locks status --porcelain 2> /dev/null) ]]; then | |
echo -e " \001\033[32m\002($branch)\001\033[0m\002" | |
else | |
echo -e " \001\033[31m\002($branch)\001\033[0m\002" | |
fi | |
fi |
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
# Version: 0.5 | |
# Date: 2019-01-30 | |
# File Name: Get-InstalledApps | |
# Author: TylerJWhit | |
# Notes: | |
# The following commands may be of help: | |
# | |
# Run against every computer in domain. | |
# Get-ADComputer -Filter * | Select-Object -ExpandProperty Name | Get-InstalledApps | |
# |