Bynames add unnecessary \n in $PROFILE
manu-p-1 opened this issue · 1 comments
Describe the bug
New-Byname
and Set-Byname
add a newline everytime a byname is set or created. This results in the file getting larger in whitespace every time a new byname is created.
To Reproduce
To view the Bug, you can follow the following sample sequence
New-Byname -Name list -Value Get-ChildItem
Set-Byname -Name list -Value Get-Command
Within your $PROFILE
, you'll see that the command has added an unnecessary extra newline.
Expected behavior
The file pointer should stay static at it's previous location without the addition of a newline before the bynames are added
Screenshots
N/A
.NET or Visual Studio (If Applicable):
N/A
Additional context
N/A
This issue has been fixed for the most part by the addition of the BynameRemover class. Regardless, I'll keep this issue open because of how additional spaces are left even after Bynames are removed.