GithubHelp home page GithubHelp logo

lzy1960 / myconfig Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35 KB

Various configurations that I personally use, including windows fonts, powershell, vscode, oh my zsh, oh my posh, starship

Shell 36.29% PowerShell 19.53% JavaScript 12.51% CSS 31.67%
config font oh-my-posh oh-my-zsh settings starship

myconfig's Introduction

我的个人配置

私人定制的 vscode 与 terminal 配置,使我爱上写代码 ✍️

$\color{#666}{\textsf{附一键替换代码}}$

English

效果展示

image

系统字体

前置:

使用noMeiryoUI工具修改系统字体

windows 高版本受限,部分字体无法替换 原理是修改注册表,详见https://github.com/Tatsu-syo/noMeiryoUI?tab=readme-ov-file#installation

Powershell

vscode 配置

vscode-settings.json

  • 字体使用 Sarasa UI SC (更纱黑体 UI SC)UbuntuSans,使中英文更加美观
  • 使用扩展程序 Apc Customize UI++ 美化 UI 与交互
  • 全局过渡动画,部分场景拥有回弹效果,体验更加丝滑与灵动
  • 部分场景的的毛玻璃效果,例如右键菜单、粘性组件、通知组件等等
  • 部分场景添加了阴影效果,实现类霓虹效果,例如光标
  • 探索更多美化效果 🥰

image

Warning

MacOS 系统中,apc 插件的效果并不理想,mac 用户需要删除 apc.xxx 相关的配置,并自行调整workbench.colorCustomizations中的透明内容

Invoke-WebRequest -Uri "https://github.com/lzy1960/myconfig/raw/main/vscode-settings.json" -OutFile "$env:APPDATA\Code\User\settings.json"

另外,由于配置中引入了外部 js 和 css,需要将二者下载到本地:

# 将 userscripts.js 和 userstyles.css 下载到本地
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/lzy1960/myconfig/main/apc-assets/userscripts.js" -OutFile "C:\users\\$env:UserName\\.vscode\\userscripts.js"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/lzy1960/myconfig/main/apc-assets/userstyles.css" -OutFile "C:\users\\$env:UserName\\.vscode\\userstyles.css"

powershell 配置

powershell-settings.json

# 文件名中带hash值
# 方法参考:https://stackoverflow.com/questions/64030699/where-is-settings-json-for-powershell-configuration-in-windows-terminal
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/lzy1960/myconfig/main/powershell-settings.json" -OutFile "$(Get-Item ("C:\users\\$env:UserName\AppData\Local\Packages\Microsoft.WindowsTerminal_*\LocalState\settings.json")).FullName"

Oh My Posh

powershell 启动配置

Microsoft.PowerShell_profile.ps1

需要安装一些插件,详细教程参考:https://github.com/lzy1960/powershell-config

# 如果报错Invoke-WebRequest: Could not find a part of the path 'xxx',则先检查$PROFILE的前置目录是否存在
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/lzy1960/myconfig/main/Microsoft.PowerShell_profile.ps1" -OutFile "$PROFILE"

Oh My Zsh

zsh 配置

需要安装一些插件,详细教程参考:https://www.stormlee.top/docs/wsl2/wsl2-new-install.html#oh-my-zsh-%E6%8F%92%E4%BB%B6

.zshrc

curl -o ~/.zshrc https://raw.githubusercontent.com/lzy1960/myconfig/main/.zshrc

starship 配置

需要先安装 starship,请参考:https://starship.rs/guide/#%F0%9F%9A%80-installation

starship.toml

curl -o ~/.config/starship.toml https://raw.githubusercontent.com/lzy1960/myconfig/main/starship.toml

如果 windows 也要配置了 starship,脚本如下:

Invoke-WebRequest -Uri "https://raw.githubusercontent.com/lzy1960/myconfig/main/starship.toml" -OutFile "C:\users\\$env:UserName\\.config\\starship.toml"

myconfig's People

Contributors

lzy1960 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.