Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 830 Bytes

File metadata and controls

13 lines (12 loc) · 830 Bytes

Customized PowerShell Prompt

Supports PowerShell 5.* and 7.* image

Like Linux

  1. Replaces the path separator "\" with "/".
  2. When current directory is the home directory, displays "~".
  3. When executed by the super user, displays "#", otherwise displays "$".
  4. Assigns tab completion to complete (works similarly to bash's complete).
  5. Loads .ps1 scripts under the Autoload directory.
    Autoload includes the following scripts:
    • ModuleManager: Update modules automatically. Add/edit module names in $modules, load local modules, etc.
    • SSHConfigCompletion: Set the connection information of ~\.ssh\config to ssh command completion.