Make your PowerShell nearly as good as Linux terminal with even more flexibility and customization.
A PowerShell customization repository built based on this repo by ChrisTitusTech with simplicity and light-weight in mind.
Make sure you have Powershell 7 or above installed already, if not, use the command:
winget install --id Microsoft.Powershell
Windows has it's powershell execution policy set to restricted which does not allow execution of powershell scripts. Use the command in an administrator Powershell
Set-ExecutionPolicy Remotesigned
Now, to install the 'tweak':
irm https://github.com/dlsathvik04/PowerShell-Tweaks/raw/main/install.ps1 | iex
Conda integration only works when conda is configured for powershell and is in path
gedit, n -> notepad
vim -> nvim (if you have nvim installed)
pkill -> Stop-Process
touch -> New-Item
works similar to
cd ..\..
and
cd ..\..\..
works based on the Get-FileHash
commandlet with tags MD5, SHA1, SHA256
opens explorer in the current directory
Does the the rough equivalent of dir /s /b. For example, dirs _.png is dir /s /b _.png
Simple function to start a new elevated process. If arguments are supplied then a single command is started with admin rights; if not then a new admin instance of PowerShell is started.
A lazy git shortcut which executes the following code
function gcom {
git add .
git commit -m "$args"
}
function gpush {
git add .
git commit -m "$args"
git push
}
To switch back to the default powershell profile(clean) use the command in powershell:
uninstall-profile