Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.63 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.63 KB

PowerShell Scripts

Repository for PowerShell setup scripts for Windows, Linux and macOS.

Folder structure

.
├── .config           # configuration files
│   ├── omp_cfg         # oh-my-posh themes
│   └── pwsh_cfg        # PowerShell profiles and aliases/functions
├── .vscode           # VSCode configuration
└── scripts           # helper scripts and functions for running other scripts
│   ├── linux           # Linux setup scripts
│   │   └── .include      # installation scripts
│   ├── macos           # macOS setup scripts
│   │   └── .include      # installation scripts
│   └── windows         # Windows setup scripts
│       └── .include      # installation scripts

PSReadLine

One of the best features for the PS CLI experience is the PSReadLine List PredictionView. Included profile turns it on by default, but also sets convenient shortcuts for navigation, so you don't have to take off your hand to reach the arrows:

  • Alt+j - to select next element on the list
  • Alt+k - to select the previous element on the list

Doesn't work on macOS 😞.

Other shortcuts

  • Tab - expands menu completion, you can navigate it with arrows
  • F2 - switch between List*_ and Inline prediction view
  • Shift+Tab - accept inline suggestion
  • Ctrl+LeftArrow - navigate word left
  • Ctrl+RightArrow - navigate word right
  • Alt+Delete - delete whole command line

Links