Skip to content

Instantly share code, notes, and snippets.

@devwolf75
Last active January 6, 2026 21:09
Show Gist options
  • Select an option

  • Save devwolf75/85a14b6ca46df83e6f154bbf9e842529 to your computer and use it in GitHub Desktop.

Select an option

Save devwolf75/85a14b6ca46df83e6f154bbf9e842529 to your computer and use it in GitHub Desktop.

Revisions

  1. devwolf75 revised this gist Mar 4, 2019. 2 changed files with 51 additions and 1 deletion.
    47 changes: 47 additions & 0 deletions PROFILE.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    ```
    remove-item alias:basename
    remove-item alias:cat
    remove-item alias:chmod
    remove-item alias:comm
    remove-item alias:cp
    remove-item alias:cut
    remove-item alias:date
    remove-item alias:dirname
    remove-item alias:echo
    remove-item alias:env
    remove-item alias:expr
    remove-item alias:false
    remove-item alias:fold
    remove-item alias:head
    remove-item alias:id
    remove-item alias:install
    remove-item alias:join
    remove-item alias:ln
    remove-item alias:ls
    remove-item alias:md5sum
    remove-item alias:mkdir
    remove-item alias:msysmnt
    remove-item alias:mv
    remove-item alias:od
    remove-item alias:paste
    remove-item alias:printf
    remove-item alias:ps
    remove-item alias:pwd
    remove-item alias:rm
    remove-item alias:rmdir
    remove-item alias:sleep
    remove-item alias:sort
    remove-item alias:split
    remove-item alias:stty
    remove-item alias:tail
    remove-item alias:tee
    remove-item alias:touch
    remove-item alias:tr
    remove-item alias:true
    remove-item alias:uname
    remove-item alias:uniq
    remove-item alias:wc
    remove-item alias:curl
    remove-item alias:wget
    ```
    5 changes: 4 additions & 1 deletion RemovePSAliases4Scoop.md
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,7 @@
    4. Save and close the PowerShell to reload the profile, or if you wish to use the same window issue the command `. $profile` to reload the profile.
    5. This can be stepped if you run PowerShell

    If you wish to run PowerShell with the defaults you can run it using the `-NoProfile` flag on the Run window or simply delete the profile that was created.
    If you wish to run PowerShell with the defaults you can run it using the `-NoProfile` flag on the Run window or simply delete the profile that was created.

    Creating this as a reminder on my windows fresh installs.
    [Original](https://superuser.com/questions/883914/how-do-i-permanently-remove-a-default-powershell-alias)
  2. devwolf75 renamed this gist Mar 4, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. devwolf75 created this gist Mar 4, 2019.
    10 changes: 10 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    1. Create a PowerShell profile if you have not.
    `New-Item $profile -force -itemtype file`
    2. Edit the profile.
    `notepad $profile`
    3. Add the aliases you wish to remove.
    `remove-item alias:<command>`
    4. Save and close the PowerShell to reload the profile, or if you wish to use the same window issue the command `. $profile` to reload the profile.
    5. This can be stepped if you run PowerShell

    If you wish to run PowerShell with the defaults you can run it using the `-NoProfile` flag on the Run window or simply delete the profile that was created.