# Make tab act like bash
Set-PSReadlineKeyHandler -Key Tab -Function Complete

# Disable tab completion bell
Set-PSReadlineOption -BellStyle None

# Aliases
Set-Alias c code-insiders.cmd

# Add bin to $Path
# $vParentPath = Split-Path $PSScriptRoot -Parent
# $vBinPath = Join-Path -Path $vParentPath -ChildPath "data\bin"
$env:Path = "$env:Path;E:\GitHub\Tyriar\dotfiles\data\bin"

# Remove ad spam from npm install...
$env:OPEN_SOURCE_CONTRIBUTOR = "true"

# Prompt posh-git
# Import-Module posh-git

# Prompt starship
Invoke-Expression (&starship init powershell)

# Make tab act like bash
Set-PSReadlineKeyHandler -Key Tab -Function Complete

# Disable tab completion bell
Set-PSReadlineOption -BellStyle None

# Aliases
Set-Alias c code-insiders.cmd

# Add bin to $Path
$vResolvedPath = (Get-ChildItem -Path "$([Environment]::GetFolderPath("MyDocuments"))\PowerShell\Profile.ps1").Target
$vParentPath = Split-Path (Get-ChildItem $vResolvedPath).DirectoryName -Parent
$vBinPath = Join-Path -Path $vParentPath -ChildPath "bin"
$env:Path = "$env:Path;$vBinPath"

# Remove ad spam from npm install...
$env:OPEN_SOURCE_CONTRIBUTOR = "true"

# Prompt posh-git
# Import-Module posh-git

# Prompt starship
Invoke-Expression (&starship init powershell)

Resolve symlink to bin dir in pwsh profile
Resolve symlink to bin dir in pwsh profile
