Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| computers:powershell [2019/03/17 03:53] – created localadmin | computers:powershell [2021/11/26 16:36] (current) – [Using vim as your editor in the command line] localadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Powershell Tips, and examples ====== | ||
| + | |||
| + | ===== Enabling, and using SSH with Powershell ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | One quirk with using OpenSSH Server via Windows is that the authorized_keys file is used only for standard users. If the user you are trying to connect with is an admin, you have to use the administrator_authorized_keys file in ProgramData/ | ||
| + | |||
| + | ===== Using vim as your editor in the command line ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Install the windows vim application | ||
| + | Create a powershell profile - https:// | ||
| + | Add these alias lines inside the profile: | ||
| + | < | ||
| + | New-Alias -Name vim -Value ' | ||
| + | New-Alias -Name vi -Value ' | ||
| + | </ | ||
| + | |||
| + | More on profile locations - https:// | ||
| + | |||
| + | Restart your session for the changes to take effect. | ||
| + | |||
| ===== Making Powershell look pretty ===== | ===== Making Powershell look pretty ===== | ||