activate it

This commit is contained in:
Jakobus Schürz 2020-01-14 14:44:36 +01:00
parent 7345cdf5bd
commit c7138453ab

View file

@ -219,7 +219,7 @@ mkcd () {
sshmyshellconfig() {
if [ $1 == "*localhost" ]; then
if [ $1 == "localhost" ]; then
CMD=""
else
local SSH="/usr/bin/ssh"
@ -230,7 +230,7 @@ sshmyshellconfig() {
[ -e /etc/bashrc ] && . /etc/bashrc
[ -e /etc/bash.bashrc ] && . /etc/bash.bashrc
echo "modify ~/.bashrc"
sed -e '/^if \[ -f ~\/bashrc_add \] /d' ~/.bashrc
sed -i -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