From b7030522aa71ed494cf9426c40f83b54606208cb Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 14 Dec 2019 14:14:27 +0800 Subject: [PATCH] =?UTF-8?q?~/.bashrc=20=E8=B0=83=E7=94=A8=20/etc/bashrc=20?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=9C=A8deb10=E4=B8=8Aroot=E7=9A=84PATH?= =?UTF-8?q?=E5=8F=98=E5=BE=97=E5=92=8C=E6=99=AE=E9=80=9A=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=80=E6=A0=B7=EF=BC=8C=E8=A6=81=E6=94=B9=E7=94=A8=20/etc/p?= =?UTF-8?q?rofile=20=E6=89=8D=E5=AF=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bashrc | 4 ++-- add-user.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index ee69a19..2551fd9 100644 --- a/.bashrc +++ b/.bashrc @@ -11,9 +11,9 @@ # User specific aliases and functions # Execute system startup script: -if [ -f /etc/bashrc ] +if [ -f /etc/profile ] then - . /etc/bashrc + . /etc/profile fi # Define primary prompt (default is '$'): diff --git a/add-user.sh b/add-user.sh index a25c70e..0ef4500 100755 --- a/add-user.sh +++ b/add-user.sh @@ -5,7 +5,7 @@ if [ v$1 != v ] then NewUser=$1 else - read -p "Enter path-to-faronear " NewUser + read -p "Enter new user name: " NewUser fi echo "<<< Add a new user"