Skip to content

Instantly share code, notes, and snippets.

@thayol
thayol / prompt.ps1
Last active February 17, 2022 11:13 — forked from NithinChintala/prompt.ps1
A PowerShell Prompt that matches Thayol's UNIX prompts
# ===Color Abbreviation===
# x = reset
# k = blacK r = Red
# g = Green y = Yellow
# b = Blue m = Magenta
# c = Cyan w = White
function prompt {
$esc = [char]0x1b
$x = "$esc[0m"
$k = "$esc[90m"
///// TODO : Replace <<LAN_INTERFACE>> with internal bridge or lan interface, replace <<<PPPOE_DIGI_INTERFACE>>> with the pppoe-digi interface
/ipv6 nd
set [ find default=yes ] disabled=yes
add advertise-dns=yes interface=<<LAN_INTERFACE>>
/ipv6 dhcp-client
add add-default-route=yes interface=<<<PPPOE_DIGI_INTERFACE>>> pool-name=pool6 request=address,prefix script=":del\
ay 5s;\
\n/ipv6 address remove [find advertise=yes]\