Giter VIP home page Giter VIP logo

powershell-tweaks's Introduction

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

powershell-tweaks's People

Contributors

dlsathvik04 avatar satxcho avatar

Stargazers

Rithin Chand V avatar  avatar varun avatar  avatar Margana Girish Vardhan avatar Suraksha Rajagopalan avatar  avatar V Rajendra Kumar avatar  avatar

Watchers

 avatar

Forkers

satxcho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.