remove old bashrc_add source
This commit is contained in:
parent
eab99b2745
commit
7345cdf5bd
1 changed files with 1 additions and 3 deletions
|
@ -230,9 +230,7 @@ sshmyshellconfig() {
|
|||
[ -e /etc/bashrc ] && . /etc/bashrc
|
||||
[ -e /etc/bash.bashrc ] && . /etc/bash.bashrc
|
||||
echo "modify ~/.bashrc"
|
||||
if grep -q "[ -f ~/bashrc_add ] &&" ~/.bashrc ;then
|
||||
sed -i -e '/\\[ -f ~/bashrc_add \\] &&/d' ~/.bashrc
|
||||
fi
|
||||
sed -e '/^if \[ -f ~\/bashrc_add \] /d' ~/.bashrc
|
||||
sed -i -e '/#MYSHELLCONFIG-start/,/#MYSHELLCONFIG-end/d' ~/.bashrc
|
||||
echo
|
||||
#printf "%s" "[ -f bashrc_add ] && . bashrc_add" | tee -a ~/.bashrc
|
||||
|
|
Loading…
Reference in a new issue