This file contains hidden or 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
# Reference https://gist.github.com/justintv/168835 | |
# Used in Elementery OS terminal | |
# Add to ~/.bashrc file | |
# Sets the Git branch name in the PS1 prompt | |
function git_prompt_setter() { | |
local RED="\\\[\\\033[1;31m\\\]" | |
local NORMAL="\\\[\\\033[00m\\\]" | |
# Modifies the existing prompt and adds the git branch name | |
PS1=$(echo $PS1 | sed 's/\(\\\?[$#]\)\s*$/'"$RED"'\$\(__git_ps1\)'"$NORMAL"'\1 / ' ) |
This file contains hidden or 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 | |
# ============================================= | |
# Installs and Uninstalls the ChefDK | |
# ============================================= | |
# | |
# -i Install ChefDK | |
# -u Uninstall ChefDK | |
# -c Verify ChefDK | |
# -h Show Help |
This file contains hidden or 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
# Add this function to the Profile script | |
# Use the following command to generate the Profile script | |
# | |
# $profileTest = Test-Path $PROFILE | |
# if ($profileTest -eq $FALSE) { | |
# New-Item $PROFILE -Type File | |
# } | |
# | |
# OR | |
# |
NewerOlder