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
6952105b
Commit
6952105b
authored
Mar 17, 2014
by
Pavol Juhas
Browse files
Merge branch 'master' of
https://github.com/robbyrussell/oh-my-zsh
parents
ed19ffee
ca900216
Changes
84
Show whitespace changes
Inline
Side-by-side
themes/sunrise.zsh-theme
View file @
6952105b
#-------------------------------------------------------------------------------
# Sunrise theme for oh-my-zsh
# Sunrise theme for oh-my-zsh by Adam Lindberg (eproxus@gmail.com)
# Intended to be used with Solarized: http://ethanschoonover.com/solarized
# Intended to be used with Solarized: http://ethanschoonover.com/solarized
# (Needs Git plugin for current_branch method)
# (Needs Git plugin for current_branch method)
#-------------------------------------------------------------------------------
# Color shortcuts
# Color shortcuts
R=$fg_no_bold[red]
R=$fg_no_bold[red]
...
...
themes/trapd00r.zsh-theme
View file @
6952105b
# Name: trapd00r zsh theme
# trapd00r.zsh-theme
# Author: Magnus Woldrich <m@japh.se>
#
#
# This theme needs a terminal supporting 256 colors as well as unicode. It also
# This theme needs a terminal supporting 256 colors as well as unicode. It also
# needs the script that splits up the current path and makes it fancy as located
# needs the script that splits up the current path and makes it fancy as located
...
...
themes/ys.zsh-theme
View file @
6952105b
...
@@ -32,3 +32,16 @@ PROMPT="
...
@@ -32,3 +32,16 @@ PROMPT="
${git_info} \
${git_info} \
%{$fg[white]%}[%*]
%{$fg[white]%}[%*]
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"
if [[ "$(whoami)" == "root" ]]; then
PROMPT="
%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \
%{$bg[yellow]%}%{$fg[cyan]%}%n%{$reset_color%} \
%{$fg[white]%}at \
%{$fg[green]%}$(box_name) \
%{$fg[white]%}in \
%{$terminfo[bold]$fg[yellow]%}${current_dir}%{$reset_color%}\
${git_info} \
%{$fg[white]%}[%*]
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"
fi
tools/install.sh
View file @
6952105b
ZSH
=
`
/usr/bin/env|grep
'ZSH='
|cut
-d
'='
-f
2
`
set
-e
if
[
-d
"
$ZSH
"
]
then
if
[
!
-n
"
$ZSH
"
]
;
then
ZSH
=
~/.oh-my-zsh
fi
if
[
-d
"
$ZSH
"
]
;
then
echo
"
\0
33[0;33mYou already have Oh My Zsh installed.
\0
33[0m You'll need to remove
$ZSH
if you want to install"
echo
"
\0
33[0;33mYou already have Oh My Zsh installed.
\0
33[0m You'll need to remove
$ZSH
if you want to install"
exit
exit
elif
[
-d
~/.oh-my-zsh
]
then
echo
"
\0
33[0;33mYou already have One Oh My Zsh Directory.
\0
33[0m You'll need to remove ~/.oh-my-zsh if you want to clone"
exit
fi
fi
echo
"
\0
33[0;34mCloning Oh My Zsh...
\0
33[0m"
echo
"
\0
33[0;34mCloning Oh My Zsh...
\0
33[0m"
hash
git
>
/dev/null
&&
/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git
~/.oh-my-zsh
||
{
hash
git
>
/dev/null
&&
/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git
$ZSH
||
{
echo
"git not installed"
echo
"git not installed"
exit
exit
}
}
echo
"
\0
33[0;34mLooking for an existing zsh config...
\0
33[0m"
echo
"
\0
33[0;34mLooking for an existing zsh config...
\0
33[0m"
if
[
-f
~/.zshrc
]
||
[
-h
~/.zshrc
]
if
[
-f
~/.zshrc
]
||
[
-h
~/.zshrc
]
;
then
then
echo
"
\0
33[0;33mFound ~/.zshrc.
\0
33[0m
\0
33[0;32mBacking up to ~/.zshrc.pre-oh-my-zsh
\0
33[0m"
;
echo
"
\0
33[0;33mFound ~/.zshrc.
\0
33[0m
\0
33[0;32mBacking up to ~/.zshrc.pre-oh-my-zsh
\0
33[0m"
;
mv
~/.zshrc ~/.zshrc.pre-oh-my-zsh
;
mv
~/.zshrc ~/.zshrc.pre-oh-my-zsh
;
fi
fi
echo
"
\0
33[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc
\0
33[0m"
echo
"
\0
33[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc
\0
33[0m"
cp
~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
cp
$ZSH
/templates/zshrc.zsh-template ~/.zshrc
sed
-i
-e
"/^ZSH=/ c
\\
ZSH=
$ZSH
"
~/.zshrc
echo
"
\0
33[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.
\0
33[0m"
echo
"
\0
33[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.
\0
33[0m"
sed
-i
-e
"/export PATH=/ c
\\
sed
-i
-e
"/export PATH=/ c
\\
...
@@ -38,9 +40,8 @@ echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m
...
@@ -38,9 +40,8 @@ echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m
echo
"
\0
33[0;32m"
' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '
"
\0
33[0m"
echo
"
\0
33[0;32m"
'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '
"
\0
33[0m"
echo
"
\0
33[0;32m"
'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
' /____/ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
' /____/ ....is now installed!'
"
\0
33[0m"
echo
"
\n\n
\0
33[0;32m....is now installed.
\0
33[0m"
echo
"
\n\n
\0
33[0;32mPlease look over the ~/.zshrc file to select plugins, themes, and options.
\0
33[0m"
echo
"
\n\n
\0
33[0;32mPlease look over the ~/.zshrc file to select plugins, themes, and options.
\0
33[0m"
echo
"
\n\n
\0
33[0;32mp.s. Follow us at http://twitter.com/ohmyzsh.
\0
33[0m"
/usr/bin/env zsh
/usr/bin/env zsh
source
~/.zshrc
.
~/.zshrc
Prev
1
2
3
4
5
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