Skip to content

Configuration 别名

使用单个命令在默认编辑器中打开配置文件。

概述

配置别名提供了打开常用编辑配置文件的快捷方式。这些别名定义在 configuration.aliases.sh 中,由 chezmoi 自动加载。

每个别名都会在系统默认文本编辑器中启动相应文件,无需记住文件路径或输入冗长的命令。

参考

Shell 配置

别名描述
bshrc打开 Bash 配置文件 (~/.bashrc)
bshp打开 Bash profile (~/.bash_profile)
zshrc打开 Zsh 配置文件 (~/.zshrc)
zshp打开 Zsh profile (~/.zprofile)

版本控制

别名描述
gcfg打开 Git 配置文件 (~/.gitconfig)
gign打开 Git ignore 文件 (~/.gitignore)

网络和服务器

别名描述
apconf打开 Apache 配置文件
ngconf打开 Nginx 配置文件
sshconf打开 SSH 配置文件 (~/.ssh/config)
hosts打开 hosts 文件 (/etc/hosts)

开发工具

别名描述
dockcomp打开 Docker Compose 文件
eddir在默认编辑器中打开当前目录