jzztf / wiki

wiki
https://jzztf.github.io
Other
1 stars 0 forks source link

linux-别名-alias #6

Open jzztf opened 6 years ago

jzztf commented 6 years ago
$ alias cm='chromium-browser'
# 电脑重启后失效
# 永久设置当前用户,设置home目录下".bashrc"文件
$ cd
$ vim .bashrc
# 添加 "alias cm='chromium-browser'"
$ source .bashrc
# 使其生效
-------------------------------------------------------------------
# 安装了zsh
$ vim .zshrc
# 添加"alias cm='chromium-browser'"
$ source .zshrc