会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
帝一辛
博客园
首页
新随笔
联系
订阅
管理
2021年11月30日
cross-env设置多个环境变量
摘要: "build":"cross-env NODE_ENV=development; cross-env VUE_APP_MODE=any vue-cli-service build"
阅读全文
posted @ 2021-11-30 11:56 whiter001
阅读(2026)
评论(0)
推荐(1)
2021年9月7日
powreshell 对话, 听到说特定词后执行命令, 截屏
摘要: install-module prelude ipmo prelude screenshot # 截屏 say '你好' Invoke-ListenForWord -Triggers 'hello' -Actions { Write-Color 'Welcome' -Green } Invoke-L
阅读全文
posted @ 2021-09-07 21:06 whiter001
阅读(35)
评论(0)
推荐(0)
2021年9月4日
pwsh 获取类似 telent的返回内容
摘要: js的tcp服务 const net = require('net'); const server = net.createServer((c) => { // 'connection' listener. console.log('client connected'); c.on('end', (
阅读全文
posted @ 2021-09-04 11:36 whiter001
阅读(59)
评论(0)
推荐(0)
pwsh的 二维数组的属性方法获取
摘要: $a = New-Object 'object[,]' 2,2 # 2-D array of length 4 $a[0,0] = 10 $a[0,1] = $false $a[1,0] = "red" $a[1,1] = $null gm -inputObject $a get-member -I
阅读全文
posted @ 2021-09-04 11:33 whiter001
阅读(52)
评论(0)
推荐(0)
powershell 命令行配置, 执行耗时,当前分支, 智能提示,智能识别跳转路径
摘要: 实现效果, 提示上一条的耗时, 当前事件, 当前git分支, 当前路径 z 自动识别路径调整, 命令行智能提示 code $profile # 下载zoxide; https://github.com/ajeetdsouza/zoxide Invoke-Expression (& { $hook =
阅读全文
posted @ 2021-09-04 11:32 whiter001
阅读(111)
评论(0)
推荐(0)
powershell 操作sqlite数据库 增删改查(windows)
摘要: module sqlite的完整源码备份(https://gitee.com/whiter001/sqlite); 原版无人维护, 需要跨平台支持,需自行修改 先安装 install-module sqlite 执行以下demo.ps1文件 import-module SQLite function
阅读全文
posted @ 2021-09-04 11:31 whiter001
阅读(203)
评论(0)
推荐(0)
powershell 小数计算
摘要: js的小数加减乘除的结果 console.log(1.0 - 0.9); // 0.09999999999999998 console.log(0.3 / 0.1); // 2.9999999999999996 console.log(9.7 * 100); // 969.9999999999999
阅读全文
posted @ 2021-09-04 11:30 whiter001
阅读(154)
评论(0)
推荐(0)
powershell 自定义tab键下拉菜单智能提示
摘要: 基于PSReadLine 得智能提示, tab健下拉菜单 下载依赖 Install-Module -Name GuiCompletion 注册tab按键 Install-GuiCompletion -Key Tab 或者自定义按键 Set-PSReadlineKeyHandler -Key Alt+
阅读全文
posted @ 2021-09-04 11:22 whiter001
阅读(357)
评论(0)
推荐(0)
powershell 自定义快捷键F7搜索弹窗展示历史记录
摘要: Install-Module Microsoft.PowerShell.ConsoleGuiTools code $profile 添加一下代码 # 按f7显示历史记录 function ocgv_history { $line = $null $cursor = $null [Microsoft.
阅读全文
posted @ 2021-09-04 11:19 whiter001
阅读(249)
评论(1)
推荐(0)
公告