mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
This commit is contained in:
commit
03750ca822
7 changed files with 40 additions and 3 deletions
|
|
@ -54,6 +54,8 @@ git_prompt_status() {
|
||||||
fi
|
fi
|
||||||
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
|
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
|
||||||
|
elif $(echo "$INDEX" | grep '^AD ' &> /dev/null); then
|
||||||
|
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
|
||||||
fi
|
fi
|
||||||
if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_UNMERGED$STATUS"
|
STATUS="$ZSH_THEME_GIT_PROMPT_UNMERGED$STATUS"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ alias be="bundle exec"
|
||||||
alias bi="bundle install"
|
alias bi="bundle install"
|
||||||
alias bl="bundle list"
|
alias bl="bundle list"
|
||||||
alias bu="bundle update"
|
alias bu="bundle update"
|
||||||
|
alias bp="bundle package"
|
||||||
|
|
||||||
# The following is based on https://github.com/gma/bundler-exec
|
# The following is based on https://github.com/gma/bundler-exec
|
||||||
|
|
||||||
|
|
|
||||||
34
plugins/gas/_gas
Normal file
34
plugins/gas/_gas
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
#compdef gas
|
||||||
|
|
||||||
|
local curcontext="$curcontext" state line cmds ret=1
|
||||||
|
|
||||||
|
_arguments -C \
|
||||||
|
'(- 1 *)'{-v,--version}'[display version information]' \
|
||||||
|
'(-h|--help)'{-h,--help}'[show help information]' \
|
||||||
|
'1: :->cmds' \
|
||||||
|
'*: :->args' && ret=0
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
cmds)
|
||||||
|
cmds=(
|
||||||
|
"version:Prints Gas's version"
|
||||||
|
"use:Uses author"
|
||||||
|
"show:Shows your current user"
|
||||||
|
"list:Lists your authors"
|
||||||
|
"import:Imports current user to gasconfig"
|
||||||
|
"help:Describe available tasks or one specific task"
|
||||||
|
"delete:Deletes author"
|
||||||
|
"add:Adds author to gasconfig"
|
||||||
|
)
|
||||||
|
_describe -t commands 'gas command' cmds && ret=0
|
||||||
|
;;
|
||||||
|
args)
|
||||||
|
case $line[1] in
|
||||||
|
(use|delete)
|
||||||
|
_values -S , 'authors' $(cat ~/.gas | sed -n -e 's/^\[\(.*\)\]/\1/p') && ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
function svn_prompt_info {
|
function svn_prompt_info {
|
||||||
if [[ -d .svn ]]; then
|
if [ in_svn ]; then
|
||||||
echo "$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_PREFIX\
|
echo "$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_PREFIX\
|
||||||
$ZSH_THEME_REPO_NAME_COLOR$(svn_get_repo_name)$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_SUFFIX$ZSH_PROMPT_BASE_COLOR$(svn_dirty)$ZSH_PROMPT_BASE_COLOR"
|
$ZSH_THEME_REPO_NAME_COLOR$(svn_get_repo_name)$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_SUFFIX$ZSH_PROMPT_BASE_COLOR$(svn_dirty)$ZSH_PROMPT_BASE_COLOR"
|
||||||
fi
|
fi
|
||||||
|
|
@ -28,7 +28,7 @@ function svn_get_rev_nr {
|
||||||
|
|
||||||
function svn_dirty_choose {
|
function svn_dirty_choose {
|
||||||
if [ in_svn ]; then
|
if [ in_svn ]; then
|
||||||
s=$(svn status 2>/dev/null)
|
s=$(svn status|grep -E '^\s*[ACDIM!?L]' 2>/dev/null)
|
||||||
if [ $s ]; then
|
if [ $s ]; then
|
||||||
echo $1
|
echo $1
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue