window powershell 下使用 oh-my-zsh

Search for a command to run...

No comments yet. Be the first to comment.
今日详解ES5相关知识,区分下这三者的关系 Object.freeze() 冻结一个对象。这实际上是使对象不可变的最严格的方法。它执行以下操作: 防止添加新属性 不允许删除现有属性 不允许更改的直接属性 可以修改子对象的属 Object.seal() 封闭对象,防止向对象添加新属性。它执行以下操作: 允许更改对象的现有属性 防止添加新属性 不允许删除现有属性 Object.preventExtensions() 防止向对象添加新属性(即防止将来扩展对象)。它执行以下操作: 允许更改...

1. 逻辑赋值运算符 逻辑空赋值 (??=) 逻辑与赋值 (&&=) 逻辑或赋值 (||=) let A // 当 A为 undefined 或者 null 时, ??= 赋值 A ??= 12 // 12 let B = 0 // 当 B为 Boolean(B) === false 时, ||= 赋值 B ||= 12 // 12 let C = 12 // 当 C为 Boolean(C) === true 时, &&= 赋值 C &&= 0 // 0 2. String.repla...

运算符 运算符执行优先级 MDN 1.大小比较运算符 1 < 3 < 2 // true // 转化 (1 < 3) < 2 Number((1 < 3)) < 2 1 < 2 // 输出 true 2.取整 parseInt parseInt(string, radix) 解析一个字符串并返回指定基数的十进制整数, radix 是2-36之间的整数,表示被解析字符串的基数。 parseInt(9999999999999999999999) === 1 // 转化 parseInt(...

1. 下载 proxychains-windows 2. 解压放在任意文件夹中 proxychains.exe 改名为 proxy.exe 3. 在系统环境变量中增加PATH 4. 新增配置文件 在用户根目录增加 .proxychains文件夹,并将下载的proxychains-windows文件中的proxychains.conf 拖拽进内 5. 配置 proxychains.conf 在proxychains.conf文件底部配置如下: [ProxyList] socks5 12...

virmach机器速度还可以,但谷歌搜索的时候频繁出现“reCAPTCHA”人机验证,实在无解.. 查得问题是 virmach大部分是 RN、CC机房 IP段可能处于Google黑名单...、 1. 申请IPV6隧道 virmach并不自带ipv6, 则使用IPv6 隧道。 申请 https://tunnelbroker.net [一个账号可以申请 5 个隧道] 注册登陆。 在左侧的 User Functions 中,点击 Create Regular Tunnel. IPv4 E...

# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
nerdfonts (用于解决powershell 图标乱码问题) 我使用的是 Hank Nerd Font Mono
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module posh-docker -Scope CurrentUser
code $profile
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme powerlevel10k
#or 旧版本powershell
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme powerlevel10k
set-ExecutionPolicy RemoteSigned

{
"terminal.integrated.fontFamily": "Hank Nerd Font Mono",
}

使用 PSReadLine 代码提示 ```plaintext
Install-Module PSReadLine -Force ```
code $profile
# 引入与设置终端主题
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme powerlevel10k
# 2023-01-09 新增
# PSReadLine
Import-Module PSReadLine
# Enable Prediction History
Set-PSReadLineOption -PredictionSource History
# Advanced Autocompletion for arrow keys 方向键检索历史
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
InlineView 和 ListView 模式)
