参考https://blog.csdn.net/silent56_th/article/details/81367774
默认shell为sh,希望改为bash,修改~/.profile文件,增加两行如下:
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
# modified for changing default shell to bash
else
export SHELL=/bin/bash
exec /bin/bash -l
fi
没有评论:
发表评论