activate it
This commit is contained in:
parent
7345cdf5bd
commit
c7138453ab
1 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ mkcd () {
|
||||||
|
|
||||||
sshmyshellconfig() {
|
sshmyshellconfig() {
|
||||||
|
|
||||||
if [ $1 == "*localhost" ]; then
|
if [ $1 == "localhost" ]; then
|
||||||
CMD=""
|
CMD=""
|
||||||
else
|
else
|
||||||
local SSH="/usr/bin/ssh"
|
local SSH="/usr/bin/ssh"
|
||||||
|
@ -230,7 +230,7 @@ sshmyshellconfig() {
|
||||||
[ -e /etc/bashrc ] && . /etc/bashrc
|
[ -e /etc/bashrc ] && . /etc/bashrc
|
||||||
[ -e /etc/bash.bashrc ] && . /etc/bash.bashrc
|
[ -e /etc/bash.bashrc ] && . /etc/bash.bashrc
|
||||||
echo "modify ~/.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
|
sed -i -e '/#MYSHELLCONFIG-start/,/#MYSHELLCONFIG-end/d' ~/.bashrc
|
||||||
echo
|
echo
|
||||||
#printf "%s" "[ -f bashrc_add ] && . bashrc_add" | tee -a ~/.bashrc
|
#printf "%s" "[ -f bashrc_add ] && . bashrc_add" | tee -a ~/.bashrc
|
||||||
|
|
Loading…
Reference in a new issue