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
| /** | |
| * @author Justin J Daniel | |
| * @description Terminal console colorizer with time. | |
| * @type Console log colorizer | |
| * @license MIT | |
| * @version 0.0.5 | |
| * @date 18 Dec 2021 | |
| * @update 03 Jan 2022 | |
| */const t=new Date().toLocaleTimeString();const log=function(o,l){if(l!==undefined)l=l.toLowerCase();switch(l){case 'error':error(o);break;case 'warn':warn(o);break;case 'info':info(o);break;case 'success':success(o);break;default:console.log(`\x1b[7m\x1b[47m\x1b[30m\x1b[1m Log \x1b[0m\x1b[2m :\x1b[0m \x1b[1m[${t}]\x1b[0m | |
| `,o);break}};function error(o){console.log(`\x1b[41m\x1b[1m ERROR \x1b[0m\x1b[2m :\x1b[0m \x1b[1m[${t}]\x1b[0m |
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
| { | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "type": "path", | |
| "style": "diamond", | |
| "powerline_symbol": "", |
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
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| if ($host.Name -eq 'ConsoleHost') | |
| { | |
| Import-Module PSReadLine | |
| } | |
| #Import-Module PSColors | |
| #Import-Module posh-git | |
| Import-Module -Name Terminal-Icons |