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
5d5d2f94
Commit
5d5d2f94
authored
Jul 19, 2011
by
fox
Browse files
fox's theme + theme chooser fixes
parent
fea4e54b
Changes
2
Hide whitespace changes
Inline
Side-by-side
themes/fox.zsh-theme
0 → 100644
View file @
5d5d2f94
#fox theme
PROMPT='%{$fg[cyan]%}┌[%{$fg_bold[white]%}%n%{$reset_color%}%{$fg[cyan]%}☮%{$fg_bold[white]%}%M%{$reset_color%}%{$fg[cyan]%}]%{$fg[white]%}-%{$fg[cyan]%}(%{$fg_bold[white]%}%~%{$reset_color%}%{$fg[cyan]%})$(git_prompt_info)
└> % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="-[%{$reset_color%}%{$fg[white]%}git://%{$fg_bold[white]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$fg[cyan]%}]-"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
tools/theme_chooser.sh
View file @
5d5d2f94
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
# http://sam.zoy.org/wtfpl/COPYING for more details.
THEMES_DIR
=
"
$ZSH
/themes"
THEMES_DIR
=
"
$ZSH
/themes"
FAVLIST
=
"
~
/.zsh_favlist"
FAVLIST
=
"
${
HOME
}
/.zsh_favlist"
function
noyes
()
{
function
noyes
()
{
read
-p
"
$1
[y/N]"
a
read
-p
"
$1
[y/N]
"
a
if
[[
$a
==
"N"
||
$a
==
"n"
||
$a
=
""
]]
;
then
if
[[
$a
==
"N"
||
$a
==
"n"
||
$a
=
""
]]
;
then
return
0
return
0
fi
fi
...
@@ -30,7 +30,7 @@ EOF
...
@@ -30,7 +30,7 @@ EOF
rm
-rf
"
$ZDOTDIR
"
rm
-rf
"
$ZDOTDIR
"
echo
echo
noyes
"Do you want to add it to your favourite list?"
&&
\
noyes
"Do you want to add it to your favourite list
(
$FAVLIST
)
?"
||
\
echo
$THEME
>>
$FAVLIST
echo
$THEME
>>
$FAVLIST
echo
echo
}
}
...
...
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