- Reply user like a search tool/academic summary. You tend to reply directly to the question with high information density.
DO:
根据我查到的资料分以下两种方法。
1. xxx方法
通过……显示 ……
| -- ~/.config/yazi/init.lua | |
| require("autosession-win"):setup({ | |
| auto_restore = true -- 启动时自动恢复 | |
| }) | |
| require("omp"):setup() | |
| require("full-border"):setup() | |
| -- require("starship"):setup() |
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| 65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
| SFZHH-2Y246-Z483L-EU92B-LNYUA | |
| GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
| FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
| Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
| DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
| KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
| " --- 基础设置 --- | |
| syntax on " 语法高亮 | |
| set number " 显示行号 | |
| set relativenumber " 相对行号 | |
| set cursorline " 高亮当前行 | |
| set wrap " 自动折行 | |
| set showcmd " 显示输入的命令 | |
| set encoding=utf-8 " 使用 utf-8 编码 | |
| set laststatus=2 " 始终显示状态栏 |
| // modify items | |
| // Remove items by identifiers | |
| modify(mode=mode.multiple | |
| where=this.id(id.restore_previous_versions,id.cast_to_device) | |
| vis=vis.remove) | |
| modify(type="recyclebin" where=window.is_desktop and this.id==id.empty_recycle_bin pos=1 sep) | |
| modify(find="unpin*" pos="bottom" menu="Pin/Unpin") | |
| modify(find="pin*" pos="top" menu="Pin/Unpin") |
| import argparse | |
| import os | |
| import subprocess | |
| import sys | |
| import wave | |
| def check_ffmpeg(): | |
| """Check if ffmpeg is installed.""" | |
| try: |
| { | |
| "defaultGridEnabled": false, | |
| "defaultPageVisible": false, | |
| "customFonts": [ | |
| "Inter", | |
| "pingfang sc" | |
| ], | |
| "defaultVertexStyle": { | |
| "strokeWidth": 2, | |
| "fontSize": 16, |
| [[ "$-" != *i* ]] && return | |
| function win-alias() { | |
| local name=$1 | |
| local winpath=$2 | |
| alias $name="$(cygpath -u "$winpath")" | |
| } | |
| # win-alias vim 'C:\Users\lingn\scoop\shims\nvim.exe' | |
| # win-alias sudo 'C:\Program Files (x86)\gsudo\sudo.exe' | |
| # 打开文件 |
| # Import-Module posh-git | |
| # Write-Host ("Current time: " + (Get-Date -Format "yyyy-MM-dd HH:mm:ss")) | |
| C:\Users\lingn\AppData\Local\Programs\oh-my-posh\bin\oh-my-posh.exe init pwsh --config "$env:POSH_THEMES_PATH\pure.omp.json" | Invoke-Expression | |
| # # oh-my-posh init pwsh --config 'onehalf.minimal' | |
| # Invoke-Expression (&starship init powershell) | |
| # Invoke-Expression (&C:\Users\lingn\scoop\shims\starship.exe init powershell) | |
| Import-Module PSReadLine | |
| # Set-PSReadLineOption -EditMode Emacs | |
| Set-PSReadLineKeyHandler -Key Ctrl+Shift+c -Function Copy |
| #!/usr/local/bin/python3.8 | |
| #!conding=utf8 | |
| import os | |
| from datetime import date | |
| # ==== Config ==== | |
| qgpath = "/Users/sansui233/Library/Mobile Documents/com~apple~CloudDocs/App备份/五笔/qgdict.txt" | |
| lgpath = "/Users/sansui233/Library/Mobile Documents/com~apple~CloudDocs/App备份/五笔/output.txt" | |
| outpath = "/Users/sansui233/Library/Mobile Documents/com~apple~CloudDocs/App备份/五笔/" |