WindowsPowerShell/profile.ps1
Kenneth Benzie (Benie) d219cd1479 Replace default cd alias with cd function
Define cd to work more like Unix/Linux:

* No path argument changes to the users home directory
* Passing "-" for the path argument changes to the previous directory
2024-12-13 21:55:41 +00:00

16 lines
518 B
PowerShell

# Set UTF-8 as the character set for pipes and output objects.
# https://gist.github.com/xoner/4671514
$OutputEncoding = New-Object -typename System.Text.UTF8Encoding
[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8
# Load config from files
. $PSScriptRoot\environment.ps1
. $PSScriptRoot\completion.ps1
. $PSScriptRoot\prompt.ps1
. $PSScriptRoot\readline.ps1
. $PSScriptRoot\alias.ps1
. $PSScriptRoot\utils.ps1
. $PSScriptRoot\layout.ps1
# TODO: . $PSScriptRoot\build.ps1
# TODO: . $PSScriptRoot\autoenv.ps1