Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
7de55844
Unverified
Commit
7de55844
authored
Jan 23, 2023
by
Bartek Pacia
Committed by
GitHub
Jan 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(mlh): add separate prompt symbol for root user (#11451)
parent
a1c54e03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
mlh.zsh-theme
themes/mlh.zsh-theme
+9
-1
No files found.
themes/mlh.zsh-theme
View file @
7de55844
...
@@ -47,6 +47,10 @@ if [ -z "$MLH_SHELL_SYMBOL" ]; then
...
@@ -47,6 +47,10 @@ if [ -z "$MLH_SHELL_SYMBOL" ]; then
MLH_SHELL_SYMBOL="$ "
MLH_SHELL_SYMBOL="$ "
fi
fi
if [ -z "$MLH_SHELL_SYMBOL_ROOT" ]; then
MLH_SHELL_SYMBOL_ROOT="# "
fi
# colors
# colors
USER_COLOR="%F{001}"
USER_COLOR="%F{001}"
DEVICE_COLOR="%F{033}"
DEVICE_COLOR="%F{033}"
...
@@ -83,7 +87,11 @@ exit_code() {
...
@@ -83,7 +87,11 @@ exit_code() {
}
}
prompt_end() {
prompt_end() {
printf "\n$MLH_SHELL_SYMBOL"
if [ "$UID" -eq 0 ]; then
printf "\n$MLH_SHELL_SYMBOL_ROOT"
else
printf "\n$MLH_SHELL_SYMBOL"
fi
}
}
# Set git_prompt_info text
# Set git_prompt_info text
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment