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
a1a1f456
Commit
a1a1f456
authored
May 28, 2012
by
Corey Woodcox
Browse files
Merge branch 'master' of
git://github.com/robbyrussell/oh-my-zsh
parents
0b70b6d0
3fdaf260
Changes
4
Hide whitespace changes
Inline
Side-by-side
oh-my-zsh.sh
View file @
a1a1f456
...
...
@@ -51,7 +51,7 @@ for plugin ($plugins); do
done
# Load all of your custom configurations from custom/
for
config_file
(
$ZSH_CUSTOM
/
*
.zsh
)
source
$config_file
for
config_file
(
$ZSH_CUSTOM
/
*
.zsh
(
.N
)
)
source
$config_file
# Load the theme
if
[
"
$ZSH_THEME
"
=
"random"
]
...
...
@@ -65,12 +65,11 @@ then
else
if
[
!
"
$ZSH_THEME
"
=
""
]
then
if
[
-f
"
$ZSH
/custom
/
$ZSH_THEME
.zsh-theme"
]
if
[
-f
"
$ZSH
_CUSTOM
/
$ZSH_THEME
.zsh-theme"
]
then
source
"
$ZSH
/custom
/
$ZSH_THEME
.zsh-theme"
source
"
$ZSH
_CUSTOM
/
$ZSH_THEME
.zsh-theme"
else
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
fi
fi
fi
plugins/python/python.plugin.zsh
View file @
a1a1f456
...
...
@@ -2,4 +2,7 @@
alias
pyfind
=
'find . -name "*.py"'
# Remove python compiled byte-code
alias
pyclean
=
'find . -type f -name "*.py[co]" -exec rm -f \{\} \;'
alias
pyclean
=
'find . -type f -name "*.py[co]" -delete'
# Grep among .py files
alias
pygrep
=
'grep --include="*.py"'
plugins/sublime/sublime.plugin.zsh
0 → 100644
View file @
a1a1f456
# Sublime Text 2 Aliases
alias
st
=
'/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
alias
stt
=
'st .'
plugins/svn/svn.plugin.zsh
View file @
a1a1f456
...
...
@@ -16,7 +16,7 @@ function svn_get_repo_name {
if
[
$(
in_svn
)
]
;
then
svn info |
sed
-n
's/Repository\ Root:\ .*\///p'
|
read
SVN_ROOT
svn info |
sed
-n
"s/URL:
\
.*
$SVN_ROOT
\/
//p"
|
sed
"s/
\/
.*
$/
/"
svn info |
sed
-n
"s/URL:
\
.*
$SVN_ROOT
\/
//p"
fi
}
...
...
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