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
8105d4ac
Commit
8105d4ac
authored
Jan 03, 2015
by
zghember
Browse files
Merge commit '
175b4a80
'
parents
6fd0b73e
175b4a80
Changes
29
Hide whitespace changes
Inline
Side-by-side
plugins/xcode/xcode.plugin.zsh
View file @
8105d4ac
...
...
@@ -16,6 +16,7 @@ function xcsel {
alias
xcb
=
'xcodebuild'
alias
xcp
=
'xcode-select --print-path'
alias
xcdd
=
'rm -rf ~/Library/Developer/Xcode/DerivedData/*'
if
[[
-d
$(
xcode-select
-p
)
/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone
\
Simulator.app
]]
;
then
alias
simulator
=
'open $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
...
...
plugins/yii2/README.md
0 → 100644
View file @
8105d4ac
# Yii2 autocomplete plugin
*
Adds autocomplete commands and subcommands for yii.
## Requirements
Autocomplete works from directory where your
`yii`
file contains.
plugins/yii2/yii2.plugin.zsh
0 → 100644
View file @
8105d4ac
# Yii2 command completion
_yii2_format_command
()
{
awk
'/^- [a-z]+/ { sub(":", "", $2); print $2 }'
}
_yii2
()
{
if
[
-f
./yii
]
;
then
_arguments
\
'1: :->command'
\
'*: :->params'
case
$state
in
command
)
local
-a
commands
local
-a
name
if
[[
$words
[
2]
==
*
\/
]]
;
then
name
=
$words
[
2]
fi
commands
=(
${
(f)
"
$(
./yii
help
$name
--color
=
0 | _yii2_format_command
)
"
}
)
compadd
-Q
-S
''
-a
--
commands
esac
fi
}
compdef _yii2 yii
\ No newline at end of file
themes/agnoster.zsh-theme
View file @
8105d4ac
...
...
@@ -123,10 +123,10 @@ prompt_hg() {
st
=
""
rev
=
$(
hg
id
-n
2>/dev/null |
sed
's/[^-0-9]//g'
)
branch
=
$(
hg
id
-b
2>/dev/null
)
if
`
hg st |
grep
-
E
q
"^
\?
"
`
;
then
if
`
hg st |
grep
-q
"^
\?
"
`
;
then
prompt_segment red black
st
=
'±'
elif
`
hg st |
grep
-
E
q
"^(M|A)"
`
;
then
elif
`
hg st |
grep
-q
"^(M|A)"
`
;
then
prompt_segment yellow black
st
=
'±'
else
...
...
themes/bureau.zsh-theme
View file @
8105d4ac
...
...
@@ -31,7 +31,7 @@ bureau_git_status () {
if $(echo "$_INDEX" | grep '^.[MTD] ' &> /dev/null); then
_STATUS="$_STATUS$ZSH_THEME_GIT_PROMPT_UNSTAGED"
fi
if $(echo "$_INDEX" | grep -E '^\?\? ' &> /dev/null); then
if $(echo "$_INDEX" |
command
grep -E '^\?\? ' &> /dev/null); then
_STATUS="$_STATUS$ZSH_THEME_GIT_PROMPT_UNTRACKED"
fi
if $(echo "$_INDEX" | grep '^UU ' &> /dev/null); then
...
...
themes/mira.zsh-theme
0 → 100644
View file @
8105d4ac
# Based on bira zsh theme with nvm, rvm and jenv support
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
local rvm_ruby=''
if which rvm-prompt &> /dev/null; then
rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
else
if which rbenv &> /dev/null; then
rvm_ruby='%{$fg[red]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}'
fi
fi
local nvm_node=''
nvm_node='%{$fg[green]%}‹node-$(nvm_prompt_info)›%{$reset_color%}'
local jenv_java=''
jenv_java='%{$fg[blue]%}‹$(jenv_prompt_info)›%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
PROMPT="╭─${user_host} ${current_dir} ${nvm_node} ${rvm_ruby} ${jenv_java} ${git_branch}
╰─%B$%b "
RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX=") %{$reset_color%}"
themes/mortalscumbag.zsh-theme
View file @
8105d4ac
...
...
@@ -10,12 +10,12 @@ function my_git_prompt() {
fi
# is anything staged?
if $(echo "$INDEX" | grep -E -e '^(D[ M]|[MARC][ MD]) ' &> /dev/null); then
if $(echo "$INDEX" |
command
grep -E -e '^(D[ M]|[MARC][ MD]) ' &> /dev/null); then
STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_STAGED"
fi
# is anything unstaged?
if $(echo "$INDEX" | grep -E -e '^[ MARC][MD] ' &> /dev/null); then
if $(echo "$INDEX" |
command
grep -E -e '^[ MARC][MD] ' &> /dev/null); then
STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_UNSTAGED"
fi
...
...
@@ -25,7 +25,7 @@ function my_git_prompt() {
fi
# is anything unmerged?
if $(echo "$INDEX" | grep -E -e '^(A[AU]|D[DU]|U[ADU]) ' &> /dev/null); then
if $(echo "$INDEX" |
command
grep -E -e '^(A[AU]|D[DU]|U[ADU]) ' &> /dev/null); then
STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_UNMERGED"
fi
...
...
themes/rkj-repos.zsh-theme
View file @
8105d4ac
...
...
@@ -4,7 +4,7 @@
function hg_prompt_info {
hg prompt --angle-brackets "\
<hg:%{$fg[magenta]%}<branch>%{$reset_color%}>\
<hg:%{$fg[magenta]%}<branch>%{$reset_color%}>
<:%{$fg[magenta]%}<bookmark>%{$reset_color%}>
\
</%{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
%{$fg[red]%}<status|modified|unknown><update>%{$reset_color%}<
patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset_color%})|pre_unapplied(%{$fg_bold[black]%})|post_unapplied(%{$reset_color%})>>" 2>/dev/null
...
...
tools/check_for_upgrade.sh
View file @
8105d4ac
...
...
@@ -22,8 +22,6 @@ if [[ -z "$epoch_target" ]]; then
epoch_target
=
13
fi
[
-f
~/.profile
]
&&
source
~/.profile
# Cancel upgrade if the current user doesn't have write permissions for the
# oh-my-zsh directory.
[[
-w
"
$ZSH
"
]]
||
return
0
...
...
Prev
1
2
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