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
Oh My Zsh
Commits
4224c2a1
Commit
4224c2a1
authored
Jun 05, 2015
by
Robby Russell
Browse files
Merge pull request #3494 from AlexTalker/short-host
Fix echo nothing if $SHORT_HOST doesn't exist.
parents
51e366e5
8cf04ed3
Changes
3
Hide whitespace changes
Inline
Side-by-side
themes/candy-kingdom.zsh-theme
View file @
4224c2a1
...
...
@@ -13,7 +13,7 @@ patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset
}
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST
|| echo $
HOST
[ -f ~/.box-name ] && cat ~/.box-name || echo $
{
SHORT_HOST
:-
HOST
}
}
PROMPT='
...
...
themes/fino-time.zsh-theme
View file @
4224c2a1
...
...
@@ -21,7 +21,7 @@ function prompt_char {
}
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST
|| echo $
HOST
[ -f ~/.box-name ] && cat ~/.box-name || echo $
{
SHORT_HOST
:-
HOST
}
}
...
...
themes/fino.zsh-theme
View file @
4224c2a1
...
...
@@ -17,7 +17,7 @@ function prompt_char {
}
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST
|| echo $
HOST
[ -f ~/.box-name ] && cat ~/.box-name || echo $
{
SHORT_HOST
:-
HOST
}
}
local ruby_env=''
...
...
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