Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
7f75bb90
Commit
7f75bb90
authored
Nov 06, 2014
by
Robby Russell
Browse files
Merge pull request #3223 from mcornella/use-special-vars
Use special variables where we can
parents
7034b01c
95d795e8
Changes
21
Show whitespace changes
Inline
Side-by-side
themes/ys.zsh-theme
View file @
7f75bb90
...
...
@@ -8,7 +8,7 @@
# Machine name.
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name ||
hostname
[ -f ~/.box-name ] && cat ~/.box-name ||
echo $HOST
}
# Directory info.
...
...
@@ -33,7 +33,7 @@ ${git_info} \
%{$fg[white]%}[%*]
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"
if [[ "$
(whoami)
" == "root" ]]; then
if [[ "$
USER
" == "root" ]]; then
PROMPT="
%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \
%{$bg[yellow]%}%{$fg[cyan]%}%n%{$reset_color%} \
...
...
Prev
1
2
Next
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