new function for transition

This commit is contained in:
Jakobus Schürz 2020-01-14 21:37:53 +01:00
parent e7bdf139d7
commit 98c5e4e766

View file

@ -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)'