Skip to content

Make your PowerShell nearly as good as Linux terminal with even more flexibility and customization. A small step to make windows a better place for developers.

License

Notifications You must be signed in to change notification settings

dlsathvik04/PowerShell-Tweaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell-Tweaks

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.

Alt text Alt text

Installation

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

Functionality and Reference

Added Aliases

gedit, n -> notepad

vim -> nvim (if you have nvim installed)

pkill -> Stop-Process

touch -> New-Item

Added functions

cd... and cd.... :

works similar to cd ..\.. and cd ..\..\..

md5, sha1, sha256 :

works based on the Get-FileHash commandlet with tags MD5, SHA1, SHA256

exp :

opens explorer in the current directory

dirs :

Does the the rough equivalent of dir /s /b. For example, dirs _.png is dir /s /b _.png

admin (su, sudo):

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.

gcom and gpush:

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
}

Uninstall the profile

To switch back to the default powershell profile(clean) use the command in powershell:

uninstall-profile

About

Make your PowerShell nearly as good as Linux terminal with even more flexibility and customization. A small step to make windows a better place for developers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published