powershell

将 Windows PowerShell 更新到最新版本 | D栈 - Delft Stack

Powershell教程 - IT宝库 (itbaoku.cn)

动力外壳画廊|家 (powershellgallery.com) 图库

powershell 字符集, 关于字符编码 - PowerShell | Microsoft Learn

在 terminal 中打开设,选择 settings json 文件,找到 commandline 属性置添加 -nologo

 "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -nologo "

查看版本

$PSVersionTable
host

更新

Install-Module PowerShellGet -Force -Verbose

(328条消息) Windows Terminal美化增强指南_ashtime99的博客-CSDN博客

Powershell官网

https://www.powershellgallery.com/

目录文件树结构

tree

https://blog.csdn.net/weixin_41010198/article/details/106356683

https://www.cnblogs.com/ricolee/p/cmd-tree.html 在windows上的git bash中安装tree 和 linux tree命令使用

Powershell 中与 Pscx有与 tree 相似 , 在官网可以看 ,安装命令 Install-Module -Name Pscx -AllowPrerelease

输入 get-help Show-Tree 查看命令参数

➜ ~  get-help Show-Tree

NAME
    Show-Tree

SYNOPSIS
    Shows the specified path as a tree.


SYNTAX
    Show-Tree [[-Path] <String[]>] [[-Depth] <Int32>] [-Force] [-IndentSize <Int32>] [-ShowLeaf] [-ShowProperty] [-ExcludeProperty <String[]>] [-Width <Int
    32>] [-UseAsciiLineArt] [<CommonParameters>]

    Show-Tree [[-LiteralPath] <String[]>] [[-Depth] <Int32>] [-Force] [-IndentSize <Int32>] [-ShowLeaf] [-ShowProperty] [-ExcludeProperty <String[]>] [-Wid
    th <Int32>] [-UseAsciiLineArt] [<CommonParameters>]


DESCRIPTION
    Shows the specified path as a tree.  This works for any type of PowerShell provider and can be used to explore providers used for configuration like th
    e WSMan provider.


RELATED LINKS

REMARKS
    To see the examples, type: "get-help Show-Tree -examples".
    For more information, type: "get-help Show-Tree -detailed".
    For technical information, type: "get-help Show-Tree -full".

在配置文件中,配置-nologo,注意版本:

"commandline": "powershell.exe -nologo", //5
"commandline": "pwsh.exe -nologo", //7
12

SSH配置
在配置文件中添加,guid生成地址
注意:guid不允许重复

{
	"guid": "{f879cccf-3a41-42cf-bb92-0e3754cfda43}",
	"hidden": false,
	"name": "名字",
	"commandline": "ssh 用户名@服务器地址"
}

查变量以查看当前编码。$OutputEncoding

$OutputEncoding

seebi/dircolors-solarized: This is a repository of themes for GNU ls (configured via GNU dircolors) that support Ethan Schoonover’s Solarized color scheme. (github.com)

配色方案:

配色方案

推荐两个配色方案的网站

美化:

参数详解:(331条消息) Windows 终端配置(powershellcmdgit bash等等)_Once_day的博客-CSDN博客_windows终端配置

Oh My Posh:全平台终端提示符个性化工具 - 少数派 (sspai.com)

查看目录和文件结构

tree /?
Graphically displays the folder structure of a drive or path.

TREE [drive:][path] [/F] [/A]

   /F   Display the names of the files in each folder.
   /A   Use ASCII instead of extended characters.

常用快捷键

分屏快捷键如下:

水平分屏:Alt + Shift + 减号
垂直分屏:Alt + Shift + 加号

切换聚焦的分屏视图:alt + (left/right/up/down)
调节分屏的窗口大小:alt + shift + (left/right/up/down)

缩放当前视图:Ctrl+ 加号/减号 (或者 Ctrl + 鼠标滚轮)

退出分屏:exit

posted @ 2022-10-17 19:11  chengpopeye  阅读(159)  评论(0编辑  收藏  举报