# 个人clink配置 **Repository Path**: mwmi/personal-clink-configuration ## Basic Information - **Project Name**: 个人clink配置 - **Description**: windows下的cmd配置文件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-31 - **Last Updated**: 2025-05-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: clink, cmd, Lua ## README # 个人的 clink 配置文件 ## 介绍 [`https://github.com/chrisant996/clink`](https://github.com/chrisant996/clink) `clink` 是 `Windows` 下的一个命令行工具,可以让你在命令行中使用一些高级功能,比如自动补全、历史记录、命令别名等。 本配置文件是我个人的 `clink` 配置文件,主要用于设置命令别名、快捷键、颜色主题等。 ## 下载配置 > ⚠️注意:推荐先安装配置,再安装`clink`,否则请确保`clink`处于关闭状态,再进行安装 ### 方式一:cmd执行命令 ```cmd cd /d %LOCALAPPDATA% rd /s /q clink git clone https://gitee.com/mwmi/personal-clink-configuration.git --depth=1 clink ``` ### 方式二:运行安装脚本 或者下载[🎉安装文件`install.cmd`](https://gitee.com/mwmi/personal-clink-configuration/raw/main/install.cmd "👉鼠标右键另存为")直接运行* ## 安装clink clink 可以通过 scoop 安装,具体安装方法请参考 [scoop 官网](https://scoop.sh/)。 ```cmd scoop install clink ``` ## 注册clink ```cmd clink autorun install -- --quiet --nolog ``` ## 插件 ## 安装插件: > 内置 ```cmd installscripts ``` ## 更新插件: ```cmd updatescripts ``` ## 配置设置 ### 启用`carapace` ```cmd 📁 ~\Desktop ❯ clink set carapace.enable true clear false true ``` ### 设置默认codepage ```cmd 📁 ~\Desktop ❯ clink set terminal.codepage 437 437 936 65001 clear ``` ### 启用文件夹补全图标显示 ```cmd 📁 ~\Desktop ❯ clink set matchicons.enable true clear false true ``` ## 扩展 ### 命令行自动补全插件 https://github.com/carapace-sh/carapace-bin ```cmd scoop install carapace-bin ``` ### ls命令增强插件 https://github.com/eza-community/eza ```cmd scoop install eza ``` ### windows的sudo命令 https://github.com/gerardog/gsudo ```cmd scoop install gsudo ``` ### 命令行模糊查找器 https://github.com/junegunn/fzf ```cmd scoop install fzf ``` ### 支持语法高亮的 cat 命令 https://github.com/sharkdp/bat ```cmd scoop install bat ``` ### dir 命令扩展(支持图标显示) https://github.com/chrisant996/dirx ```cmd scoop install dirx ``` ### vswhere 定位 Visual Studio 2017/2019 路径 https://github.com/microsoft/vswhere ```cmd scoop install vswhere ```