常用命令别称脚本

#!/bin/bash if test -e ${HOME}/.bashrc then cp ${HOME}/.bashrc ${HOME}/.bashrc.bak fi cat <<EOF >>${HOME}/.bashrc alias cp='cp -pi' alias rm='rm -i' alias mv='mv -i' alias grep='grep --color' alias ssh='ssh -Y' alias man="TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man" alias cdqq="cd ~/.tencent/qq/AppData/file" alias mpd="nohup mpd&" alias fetion='nohup linux-fetion &' //设置环境变量 export PATH=~/bin:${PATH} export PYTHONPATH=${HOME}/pylib EOF

你可能感兴趣的:(常用命令别称脚本)