Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c278401

Browse files
authored
Update README.md
1 parent 98e78de commit c278401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎bashrc/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ __prompt_command() {
5757

5858
# https://stackoverflow.com/questions/18215973/how-to-check-if-running-as-root-in-a-bash-script
5959
if [ "${EUID:-$(id -u)}" -eq 0 ]; then
60-
REALUSER=$(who -m | cut -f1 -d' ')
60+
localREALUSER=$(who -m | cut -f1 -d' ')
6161
PS1+="${Gray}${REALUSER}${Cyan}->${Red}\u" #user
6262
else
6363
PS1+="${Yellow}\u" #user

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /