Skip to content

Instantly share code, notes, and snippets.

@eigenbom
Created April 25, 2020 04:27
Show Gist options
  • Save eigenbom/995632124cba7b76444fd77d69863eb9 to your computer and use it in GitHub Desktop.
Save eigenbom/995632124cba7b76444fd77d69863eb9 to your computer and use it in GitHub Desktop.
show generated place names for each folder
function prompt {
function get-rand($min, $max){
Get-Random -SetSeed $(Get-Location).Path.GetHashCode() -Minimum $min -Maximum $max
}
$moods = "abroad", "acute", "admired", "adult", "adverse", "advised", "aerosol", "afraid", "aligned", "alleged", "almond", "alright", "ambient", "amiable", "amino", "amused", "angelic", "angrier", "archer", "aroused", "avocado", "awake", "awsome", "balding", "banded", "banned", "battle", "beaten", "bellied", "belted", "betting", "biggest", "bipolar", "blame", "blessed", "bloat", "blocked", "blooded", "bolder", "bonnie", "bored", "bounded", "brazen", "bridged", "broiled", "broker", "bronze", "buffy", "bullied", "burial", "buttery", "candied", "casual", "causal", "chapel", "cheeky", "civic", "civil", "cleric", "colour", "combat", "comely", "confuse", "convex", "cooked", "cosmic", "cover", "crash", "crypto", "dandy", "dashing", "dazzled", "defaced", "deluded", "depress", "deviant", "devoted", "dirtier", "doable", "doing", "dotted", "dozen", "draught", "dread", "dried", "dropped", "dulled", "eaten", "echoing", "elastic", "elven", "embryo", "emerald", "enamel", "encased", "entire", "envious", "eroded", "excess", "export", "fading", "fainter", "famous", "fancier", "fated", "fellow", "filling", "firmer", "fitted", "flawed", "fleshy", "floral", "flowing", "foggy", "folic", "foolish", "footy", "forked", "freight", "fresh", "fretted", "frugal", "fuming", "funded", "funny", "garbled", "gilded", "ginger", "glare", "glaring", "goody", "grande", "graven", "greener", "grizzly", "gusty", "harlot", "healing", "heart", "heathen", "herbal", "hissy", "hitless", "hooded", "huddled", "human", "humid", "ignited", "immense", "immoral", "inbound", "indigo", "inert", "inflate", "inform", "injured", "inking", "insane", "intern", "jealous", "jerking", "joining", "joint", "joyful", "keyed", "knowing", "laden", "lagging", "layered", "leather", "leery", "legible", "leisure", "lifted", "liver", "livid", "lobster", "locked", "loudest", "lucid", "lusty", "maniac", "manmade", "maroon", "mated", "medical", "medley", "melodic", "midair", "midterm", "midway", "mighty", "minor", "mixed", "monarch", "morbid", "motley", "mounted", "muscled", "muted", "mythic", "natural", "newest", "night", "nitrous", "no-fly", "north", "nuanced", "oldest", "onstage", "onward", "opaque", "opt-in", "outdone", "outlaw", "oyster", "paced", "panting", "parted", "passive", "pastel", "patriot", "peevish", "penal", "penned", "pensive", "perky", "piped", "piquant", "pliable", "plumb", "poorest", "posed", "prank", "premium", "pressed", "prewar", "priced", "pricier", "primal", "primer", "printed", "private", "problem", "process", "pronged", "pulled", "pulsed", "quick", "raunchy", "razed", "regal", "reserve", "rested", "ringed", "risque", "robust", "roomful", "roused", "rubber", "running", "runtime", "safest", "salient", "saute", "saved", "scarlet", "seated", "senior", "sensed", "sexier", "shadowy", "shaken", "shaker", "shaped", "shiny", "shipped", "short", "signed", "sizable", "skinny", "sleek", "sleepy", "slender", "slimmer", "snuff", "sought", "sparing", "speedy", "spiky", "sprung", "squint", "stately", "sticky", "stinky", "stoked", "stolen", "storied", "suave", "summary", "sunset", "swarthy", "tailed", "tallest", "tanked", "tarry", "thicker", "timed", "timely", "timid", "torrent", "tougher", "trapped", "treated", "trial", "trunk", "trying", "twisted", "unaided", "uneasy", "unequal", "unfazed", "unread", "unsafe", "unwary", "uppity", "upstart", "useless", "utter", "valiant", "valid", "valued", "vanilla", "vaunted", "veering", "vented", "verbal", "versed", "vinyl", "virgin", "visual", "walk-on", "wanton", "warlike", "washed", "waved", "weakest", "wetting", "wheeled", "widen", "willful", "willing", "wistful", "woeful", "wooded", "worldly", "worsted", "worthless"
$places = "ocean", "sea", "river", "bay", "fjord", "geyser", "road", "railway", "dam", "bridge", "flume", "delta", "orchard", "track", "cove", "sabkha", "atoll", "levee", "estuary", "bayou", "quarry", "shore", "lock", "sound", "ford", "weir", "dry dam", "pier", "mine", "bakery", "brewery", "sawmill", "aquifer", "patio", "room", "fence", "ceiling", "factory", "apiary", "drylot", "feedlot", "eaves", "kiosk", "office", "canopy"
$mood = $moods[$(get-rand 0 ($moods.Count-1))]
$place = $places[$(get-rand 0 ($places.Count-1))]
$prefix = "$mood $place"
# $prefix = $("(" + $prefix.Substring(0, 14) + ")").PadRight(16)
# $prefix = $prefix.PadRight(16).Substring(0, 16)
$prefix = $prefix.PadRight(12).Substring(0, 12)
$color = get-rand 1 16
# Write-Host ("$prefix " + $(Get-Location) +">") -NoNewLine -ForegroundColor $Color
Write-Host ("$prefix") -NoNewLine -BackgroundColor $Color -ForegroundColor 0
# Write-Host ($prefix)
return " $(Get-Location)" + "> "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment