Skip to content

Grozoff/Windows-Terminal-Tweaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Let's get started!

  1. Get Windows Terminal, get PowerShell (not a windows PowerShell) and set it as default:

  2. (OPTIONAL) Change Terminal/Console fonts (includes hundreds of special characters that you can use to make your prompt cooler):

    • Download Cascaydia Cove Nerd Fonts from here
    • Unpack and install them in the standard way (right click on the font -> install)
    • Change font in PowerShell profile to CascaydiaCove NF: Terminal -> Settings -> Profiles -> PowerShell -> Appearance -> Font face
  3. Install and use "Starship" The minimal, blazing-fast, and infinitely customizable prompt for any shell!:

    • Install Starship with command winget install --id Starship.Starship and restart shell (terminal) to reload PATH
    • Edit $PROFILE and add the following line Invoke-Expression (&starship init powershell) and for the changes to take effect, restart the shell.
    • Change default configuration file location with STARSHIP_CONFIG environment variable, just add the following line to the $PROFILE - $ENV:STARSHIP_CONFIG = "$HOME\example\non\default\path\starship.toml"
    • Open configuration file notepad "$HOME\example\non\default\path\starship.toml" and insert my configuration starship.toml into it.
  4. Installing additional features:

    • Installing color icons in the directory and files listing!
      • Run the command Install-Module -Name Terminal-Icons -Repository PSGallery And then add one line to my $PROFILE Import-Module -Name Terminal-Icons. Now if you run the command ls you will see this
    • PSReadLine provides an improved command-line editing experience in the PowerShell console:

      • Run Install-Module PSReadLine -AllowPrerelease -Force and add the following line to $PROFILE Import-Module PSReadLine
      • Enable Predictive IntelliSense
        Set-PSReadLineOption -PredictionSource History
        Set-PSReadLineOption -PredictionViewStyle ListView
        Set-PSReadLineOption -EditMode Windows
        

      After saving $PROFILE and restarting the shell, you will have an ANSI-style list with a prediction of what you want to see next and a history of what you have already used.

    • For easy navigation through the list that we have set above, it is necessary to add the following lines to the $PROFILE

      Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
      Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
      

      Use the up and down arrows to navigate through the sheet


My final result

  • general user
  • administrator
  • python info