Skip to content

fiqgant/My-PowerShell-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

My PowerShell Config

  • Nerd Fonts Iconic font aggregator, collection, and patcher
  • Scoop A command-line installer for Windows
  • Git DevOps tool used for source code management
  • Neovim Vim-fork focused on extensibility and usability
  • Oh My Posh A prompt theme engine for any shell.
  • Terminal Icons A PowerShell module to show file and folder icons in the terminal
  • z Directory jumper
  • PSReadLine A bash inspired readline implementation for PowerShell
  • Fzf A command-line fuzzy finder

Screenshots

alt tag

alt tag

alt tag

Code

Prompt

clear
Import-Module posh-git
Import-Module PSReadLine
Import-Module -Name Terminal-Icons
oh-my-posh init pwsh --config C:\Users\fiq\AppData\Local\Programs\oh-my-posh\themes/cloud-native-azure.omp.json | Invoke-Expression

PSReadline

Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineOption -BellStyle None
Set-PSReadLineKeyHandler -Chord 'Ctrl+d' -Function DeleteChar
Set-PSReadLineOption -PredictionSource History

Fzf

Import-Module PSFzf
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+f' -PSReadlineChordReverseHistory 'Ctrl+r'

Alias

Set-Alias vim nvim
Set-Alias ll ls
Set-Alias g git
Set-Alias grep findstr
Set-Alias tig 'C:\Program Files\Git\usr\bin\tig.exe'
Set-Alias less 'C:\Program Files\Git\usr\bin\less.exe'
Set-Alias python 'C:\Users\fiq\AppData\Local\Programs\Python\Python39\python.exe'
Set-Alias p 'C:\Users\fiq\AppData\Local\Programs\Python\Python39\python.exe'

Utilities

function which ($command) {
    Get-Command -Name $command -ErrorAction SilentlyContinue |
        Select-Object -ExpandProperty Path -ErrorAction SilentlyContinue
    
}

About

Configuration for my powershell on windows 11

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published