Pensieve
日常记录
日常记录
  • tool

    • yarn
    • powershell
    • 编辑器
    • git命令提示
    • vim
    • gitlab
    • husky-git钩子工具
  • wsl

    • 本机代理
  • html

    • 不常用功能
  • js

    • math 相关
    • js 日期相关
    • API参考
    • 算法相关
    • 图片相关
    • js 事件相关
    • 数据结构相关
    • vue
    • rxjs相关
  • node

    • 文件操作
    • svg压缩工具-svgo
  • go

    • go的一些命令
    • 文件操作
    • 网络相关
    • 目录结构推荐
    • 常用三方库
    • wasm
  • rust

    • Rust 入门笔记
    • wasm
    • 一些库
    • 圣经记录
  • linux

    • hyprland的一些问题
  • 杂项

    • 视频流相关

powershell

美化

  • 确保是新版powershell

    • gitlog信息无法正确显示中文的解决办法:

      系统环境变量中添加变量LESSCHARSET为utf-8

      git config --global core.quotepath false
      git config --global gui.encoding utf-8
      git config --global i18n.commit.encoding utf-8
      git config --global i18n.logoutputencoding utf-8
      $env:LESSCHARSET='utf-8'
      
  • 字体:

    • Fira Code
  • git美化 Install-Module posh-git -Scope CurrentUser

  • 主题库 Install-Module oh-my-posh -Scope CurrentUser

    • 官方库
  • 安装vscode后命令行输入code $profile打开powershell初始化配置

    Import-Module posh-git
    Import-Module oh-my-posh
    Set-PoshPrompt -Theme Powerlevel10k_Lean
    
  • 使用Terminal

    • 添加powershell对象
      {
        "guid": "{dcec86a8-ddc6-8d3c-e7a7-384e218d8f0f}",
        "hidden": false,
        "name": "pwsh",
        "commandline": "D:/powershell/7/pwsh.exe -nologo",
        "icon": "D:/powershell/7/assets/Powershell_av_colors.ico",
        "fontFace": "Fira Code", // 推荐字体
        "fontSize": 11,
        "historySize": 9001,
        "padding": "5, 5, 20, 25",
        "snapOnInput": true,
        "useAcrylic": false,
      }
      
    • 配置项目官方文档
    • windowsterminalthemes terminal主题网站
    • window资源管理器中ctrl+l光标跳转到地址栏,输入wt回车在此目录打开terminal
Last Updated: 3/8/21, 3:52 PM
Contributors: dxy2233
Prev
yarn
Next
编辑器