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
13998bb2
Commit
13998bb2
authored
Dec 02, 2012
by
Robby Russell
Browse files
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
parents
dfbafe6d
fcc8b192
Changes
6
Show whitespace changes
Inline
Side-by-side
oh-my-zsh.sh
View file @
13998bb2
...
...
@@ -11,7 +11,9 @@ fpath=($ZSH/functions $ZSH/completions $fpath)
# Load all of the config files in ~/oh-my-zsh that end in .zsh
# TIP: Add files you don't want in git to .gitignore
for
config_file
(
$ZSH
/lib/
*
.zsh
)
source
$config_file
for
config_file
(
$ZSH
/lib/
*
.zsh
)
;
do
source
$config_file
done
# Set ZSH_CUSTOM to the path where your custom config files
# and plugins exists, or else we will use the default custom/
...
...
@@ -51,7 +53,9 @@ for plugin ($plugins); do
done
# Load all of your custom configurations from custom/
for
config_file
(
$ZSH_CUSTOM
/
*
.zsh
(
N
))
source
$config_file
for
config_file
(
$ZSH_CUSTOM
/
*
.zsh
(
N
))
;
do
source
$config_file
done
# Load the theme
if
[
"
$ZSH_THEME
"
=
"random"
]
...
...
plugins/autojump/autojump.plugin.zsh
View file @
13998bb2
...
...
@@ -3,6 +3,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
.
/usr/share/autojump/autojump.zsh
elif
[
-f
/etc/profile.d/autojump.zsh
]
;
then
# manual installation
.
/etc/profile.d/autojump.zsh
elif
[
-f
$HOME
/.autojump/etc/profile.d/autojump.zsh
]
;
then
# manual user-local installation
.
$HOME
/.autojump/etc/profile.d/autojump.zsh
elif
[
-f
/opt/local/etc/profile.d/autojump.zsh
]
;
then
# mac os x with ports
.
/opt/local/etc/profile.d/autojump.zsh
elif
[
$commands
[
brew]
-a
-f
`
brew
--prefix
`
/etc/autojump.zsh
]
;
then
# mac os x with brew
...
...
plugins/rvm/rvm.plugin.zsh
View file @
13998bb2
...
...
@@ -4,7 +4,7 @@ alias rubies='rvm list rubies'
alias
gemsets
=
'rvm gemset list'
local
ruby18
=
'ruby-1.8.7-p334'
local
ruby19
=
'ruby-1.9.
2
-p1
80
'
local
ruby19
=
'ruby-1.9.
3
-p1
94
'
function
rb18
{
if
[
-z
"
$1
"
]
;
then
...
...
@@ -44,3 +44,8 @@ function gems {
-Ee
"s/
$current_ruby
@global/
$fg
[yellow]&
$reset_color
/g"
\
-Ee
"s/
$current_ruby$current_gemset$/$fg
[green]&
$reset_color
/g"
}
function
_rvm_completion
{
source
$rvm_path
"/scripts/zsh/Completion/_rvm"
}
compdef _rvm_completion rvm
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
View file @
13998bb2
WRAPPER_FOUND
=
0
for
wrapsource
in
"/usr/bin/virtualenvwrapper.sh"
"/usr/local/bin/virtualenvwrapper.sh"
"/etc/bash_completion.d/virtualenvwrapper"
;
do
if
[[
-e
$wrapsource
]]
;
then
WRAPPER_FOUND
=
1
wrapsource
=
`
which virtualenvwrapper.sh
`
if
[[
-f
"
$wrapsource
"
]]
;
then
source
$wrapsource
if
[[
!
$DISABLE_VENV_CD
-eq
1
]]
;
then
...
...
@@ -36,11 +35,6 @@ for wrapsource in "/usr/bin/virtualenvwrapper.sh" "/usr/local/bin/virtualenvwrap
builtin cd
"
$@
"
&&
workon_cwd
}
fi
break
fi
done
if
[
$WRAPPER_FOUND
-eq
0
]
;
then
print
"zsh virtualenvwrapper plugin: Couldn't activate virtualenvwrapper. Please run
\`
pip install virtualenvwrapper
\`
."
else
print
"zsh virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh. Please install with
\`
pip install virtualenvwrapper
\`
."
fi
themes/fishy.zsh-theme
View file @
13998bb2
# ZSH Theme emulating the Fish shell's default prompt.
_fishy_collapsed_wd() {
echo $(pwd | perl -pe "s|^$HOME|~|g; s|/([^/])[^/]*(?=/)|/\$1|g")
}
local user_color='green'; [ $UID -eq 0 ] && user_color='red'
PROMPT='%n@%m %{$fg[$user_color]%}
%~
%{$reset_color%}%(!.#.>) '
PROMPT='%n@%m %{$fg[$user_color]%}
$(_fishy_collapsed_wd)
%{$reset_color%}%(!.#.>) '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"
...
...
themes/jonathan.zsh-theme
View file @
13998bb2
functions rbenv_prompt_info >& /dev/null || rbenv_prompt_info(){}
function theme_precmd {
local TERMWIDTH
(( TERMWIDTH = ${COLUMNS} - 1 ))
...
...
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