alias

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

 

vim ~/.bashrc
写入相应的alias后,就能够永久生效了
另外该文件是readonly  输入:set noreadonly+:wq或者:wq!保存
 
保存文件后,运行:
source ~/.bashrc
相关文章
相关标签/搜索