Skip to content

Instantly share code, notes, and snippets.

View RiceBen's full-sized avatar
keep learning

Rice Ben RiceBen

keep learning
View GitHub Profile
@RiceBen
RiceBen / Taskfile.yml
Last active December 25, 2023 13:57
Demo Taskfile
version: '3'
silent: true
tasks:
default:
desc: 'Default command will list all tasks'
cmds:
- task --list-all
@RiceBen
RiceBen / Init_Dev_Env.ps1
Last active November 29, 2023 09:50
Initialize development environment with scoop
param(
[string][Parameter(Mandatory = $true)] $DownloadFolder
)
function Test-CommandAvailable {
param (
[Parameter(Mandatory = $True, Position = 0)]
[String] $Command
)
return [Boolean](Get-Command $Command -ErrorAction SilentlyContinue)
@RiceBen
RiceBen / Custom_Prompt_PowerShell7.x_profile.ps1
Last active July 2, 2021 15:51
PowerShell 7.x Prompt with posh-git
#Import posh-git module
Import-Module #'{your path}\posh-git.psd1'
function prompt {
#posh-git settings
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true
$prompt += & $GitPromptScriptBlock
#Assign Windows Title Text
$host.ui.RawUI.WindowTitle = "Current Folder: $pwd"