new function for transition
This commit is contained in:
parent
e7bdf139d7
commit
98c5e4e766
1 changed files with 8 additions and 1 deletions
|
@ -231,7 +231,7 @@ sshmyshellconfig() {
|
|||
[ -e /etc/bash.bashrc ] && . /etc/bash.bashrc
|
||||
echo "modify ~/.bashrc"
|
||||
sed -e '/^\[ -f bashrc_add \] /d' ~/.bashrc
|
||||
sed -i -e '/\[ -f /bashrc_add \] /d' ~/.bashrc
|
||||
sed -i -e '/^\[ -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
|
||||
|
@ -242,6 +242,13 @@ EOF
|
|||
|
||||
}
|
||||
|
||||
transit2newconf() {
|
||||
sshmyshellconfig
|
||||
echo rm ~/bashrc_add
|
||||
rm ~/bashrc_add
|
||||
exit
|
||||
}
|
||||
|
||||
sshs() {
|
||||
|
||||
# MKTMPCMD='mktemp $(echo ${XDG_RUNTIME_DIR}/bashrc.XXXXXXXX.conf)'
|
||||
|
|
Loading…
Reference in a new issue