Skip to content

tasnimzotder/PowerShell-Lightning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

35 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Powershell Lightning ⚑

πŸŽ‰ Smart Powershell CLI Tool for developers - Also Easily Add .gitignore file

PowerShell Gallery Version (including pre-releases) GitHub release (latest SemVer including pre-releases) GitHub issues PowerShell Gallery GitHub All Releases

βš“ Prerequisites

Check for the execution policy

Open PowerShell as Administrator

  • Run Get-ExecutionPolicy

  • If you don't get RemoteSigned. Then run Set-ExecutionPolicy RemoteSigned

Terminal Check

You should use Windows Terminal to have a brilliant terminal experience on Windows.

Windows Terminal can be acquired from the Microsoft Store, the Windows Terminal

You need to have the new PowerShell, can be downloaded from here

πŸ’» Installation

One Line Command (Method 1)

Install-Module -Name PowerShell-Lightning

Manual (Method 2)

  1. Go to Releases and download from the Assets

  2. Download the exe file and install

Optional

  • Open profile.ps1 located in \\Documents\PowerShell or simple run the command code $PROFILE.CurrentUserAllHosts or notepad $PROFILE.CurrentUserAllHosts
  • add Import-Module PowerShell-Lightning to the end

Now Run

Get-Module

You will see PowerShell-Lightning there.

restart the PowerShell

For more help write

PSL info

πŸ”— Arguments

Name Description Example
info Display the docs psl info
doctor Check language setup status psl doctor
c, create Create a new project psl create hello_js node
s, setup Setup project env / config psl setup
gi, gitignore Add .gitignore file psl gi node

πŸ›  Functions

Name Alias Description
Run_AnyCode makk Run code
makk hello.cpp
touch touch Create new file
touch hello.txt
nano nano Edit file
nano hello.txt
rnn rnn Rename file
rnn hello.txt then changed.txt

🚩 Flags

Run_AnyCode or makk

Name Description Example
s, silent Run proram silently makk hello.js -s
p, progress Show progress status makk hello.js -p

πŸ†Ž About PowerShell Profile

Description Name
All Users, All Hosts $PROFILE.AllUsersAllHosts
All Users, Current Host $PROFILE.AllUsersCurrentHost
Current User, All Host $PROFILE.CurrentUserAllHosts
Current User, Current Host $PROFILE.CurrentUserCurrentHost