Skip to content

Latest commit

 

History

History
161 lines (146 loc) · 8.4 KB

README.md

File metadata and controls

161 lines (146 loc) · 8.4 KB

Welcome PowerShell's $uperUser

To The Windows Terminal, Console and Command-Line repository

 ____                        _   _
/ ___| _   _ _ __   ___ _ __| | | |___  ___ _ __
\___ \| | | | '_ \ / _ \ '__| | | / __|/ _ \ '__| v1.0 | 26th March 2023
 ___) | |_| | |_) |  __/ |  | |_| \__ \  __/ |    by Sanjeev Stephan Murmu
|____/ \__,_| .__/ \___|_|   \___/|___/\___|_|    https://github.com/SanjeevStephan/
            |_|

[ OK ] Profile Function => { profile_function.ps1 } Loaded Successfully
┌──(superuser㉿192.168.29.200)-[C:\Users\Sanju\Documents\PowerShell]
└─$ PS>                                 

Index

SYNOPSIS

Microsoft Window Terminal Profile : SuperUser

Author

Sanjeev_Stephan_Murmu

Version

Version Release Date
v1.0 26th March 2023

Description

This PowerShell Repository comprises the index of all the usefull functions and scripts for the window terminal

This repository contains :

  • configuration
  • dictionary
  • dependencies
  • paths
  • variables
  • functions
  • file-Types
    File Extension
    Powershell-script ps1
    JSON-file json
    Markdown md

Directory Structure

For In-Detail Explaination | Please refer to My Wiki

How to Setup

By Default PowerShell Executions is restricted for CurrentUser.

  1. Firstly, PowerShell execution policy is required to be one of: Unrestricted, RemoteSigned or ByPass to execute the installer. For example:
Get-ExecutionPolicy -List
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

For Windows 11

  1. Install Git From Terminal via Winget tool Install winget tool if you don't already have it, then type this command in command prompt or Powershell.
winget install --id Git.Git -e --source winget
  1. If You have Window 11 Installed Then Simply Install PowerShell using Winget (recommended)
    The following commands can be used to install PowerShell using the published winget packages:
winget search Microsoft.PowerShell
  1. You'll get Output below like this
Name               Id                           Version Source
---------------------------------------------------------------
PowerShell         Microsoft.PowerShell         7.3.4.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.3 winget
  1. Now Install PowerShell or PowerShell Preview using the id parameter
winget install --id Microsoft.Powershell --source winget

or

winget install --id Microsoft.Powershell.Preview --source winget

Note : You have to execute any one of the command and not both
You should the success message like this below

Found PowerShell [Microsoft.PowerShell] Version 7.3.4.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Successfully installed

For Windows 10

  1. To Download git for terminal click here
  2. Now Copy below url and paste it in browser or Alternatively Click Here to Download PowerShell
https://aka.ms/PSWindows
  1. Verify The Powershell Installation by checking its version using below command
$PSVersionTable
  1. Open Terminal & navigate to User's home directory which is (C:\Users\<username>\Documents)
cd $home\Documents
  1. Clone the repository using git clone
git clone https://github.com/SanjeevStephan/superuser.git
  1. Now you will see a folder named SuperUser, renamed it to PowerShell
  2. Restart the Terminal & start powerShell
 pwsh
  1. If all the things went well you will be greeted by the terminal,similarly like this. CLick here to see the log

How this Works?

To know how this profile script works. Kindly click here to read the docs

How to Contribute

To know how you can contribute to this repository. Kindly Click here

Installing and running New Windows Terminal

Note: Windows Terminal requires Windows 10 2004 (build 19041) or later

Additional Settings for Window 11 (New Microsoft Terminal)

Go To Settings and do the following to maximize productivity

  • Change th Default Profile from Windows PowerShell {5.3} to PowerShell {7.3}
  • Change the Default Terminal Application from Let Window Decide to Windows Terminal
  • Toggle ON -> Launch on machine startup (if you want the window to open terminal at launch)

Prerequisites

LINK