mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
1cde5b0c46
12 changed files with 215 additions and 108 deletions
|
|
@ -5,6 +5,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
|
||||||
. /etc/profile.d/autojump.zsh
|
. /etc/profile.d/autojump.zsh
|
||||||
elif [ -f /etc/profile.d/autojump.sh ]; then # gentoo installation
|
elif [ -f /etc/profile.d/autojump.sh ]; then # gentoo installation
|
||||||
. /etc/profile.d/autojump.sh
|
. /etc/profile.d/autojump.sh
|
||||||
|
elif [ -f /usr/local/share/autojump/autojump.zsh ]; then # freebsd installation
|
||||||
|
. /usr/local/share/autojump/autojump.zsh
|
||||||
elif [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
|
elif [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
|
||||||
. $HOME/.autojump/etc/profile.d/autojump.zsh
|
. $HOME/.autojump/etc/profile.d/autojump.zsh
|
||||||
elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
|
elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ alias hglr='hg pull --rebase'
|
||||||
alias hgo='hg outgoing'
|
alias hgo='hg outgoing'
|
||||||
alias hgp='hg push'
|
alias hgp='hg push'
|
||||||
alias hgs='hg status'
|
alias hgs='hg status'
|
||||||
|
alias hgsl='log --limit 20 --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n" '
|
||||||
# this is the 'git commit --amend' equivalent
|
# this is the 'git commit --amend' equivalent
|
||||||
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,16 +24,18 @@ export RESET_FORMATTING=`tput sgr0`
|
||||||
# Wrapper function for Maven's mvn command.
|
# Wrapper function for Maven's mvn command.
|
||||||
mvn-color()
|
mvn-color()
|
||||||
{
|
{
|
||||||
# Filter mvn output using sed
|
(
|
||||||
mvn $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${TEXT_BLUE}${BOLD}\1/g" \
|
# Filter mvn output using sed. Before filtering set the locale to C, so invalid characters won't break some sed implementations
|
||||||
-e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}${BOLD}\1${RESET_FORMATTING}/g" \
|
unset LANG
|
||||||
|
LC_CTYPE=C mvn $@ | sed -e "s/\(\[INFO\]\)\(.*\)/${TEXT_BLUE}${BOLD}\1${RESET_FORMATTING}\2/g" \
|
||||||
-e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
|
-e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
|
||||||
-e "s/\(\[WARNING\].*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \
|
-e "s/\(\[WARNING\]\)\(.*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}\2/g" \
|
||||||
-e "s/\(\[ERROR\].*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}/g" \
|
-e "s/\(\[ERROR\]\)\(.*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}\2/g" \
|
||||||
-e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g"
|
-e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g"
|
||||||
|
|
||||||
# Make sure formatting is reset
|
# Make sure formatting is reset
|
||||||
echo -ne ${RESET_FORMATTING}
|
echo -ne ${RESET_FORMATTING}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Override the mvn command with the colorized one.
|
# Override the mvn command with the colorized one.
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,6 @@
|
||||||
#compdef rails
|
#compdef rails
|
||||||
#autoload
|
#autoload
|
||||||
|
|
||||||
# rails 3 zsh completion, based on homebrew completion
|
|
||||||
# Extracted from https://github.com/robbyrussell/oh-my-zsh/blob/30620d463850c17f86e7a56fbf6a8b5e793a4e07/plugins/rails3/_rails3
|
|
||||||
# Published by Christopher Chow
|
|
||||||
|
|
||||||
local -a _1st_arguments
|
local -a _1st_arguments
|
||||||
_1st_arguments=(
|
_1st_arguments=(
|
||||||
'generate:Generate new code (short-cut alias: "g")'
|
'generate:Generate new code (short-cut alias: "g")'
|
||||||
|
|
@ -14,14 +10,20 @@ _1st_arguments=(
|
||||||
'new:Create a new Rails application. "rails new my_app" creates a new application called MyApp in "./my_app"'
|
'new:Create a new Rails application. "rails new my_app" creates a new application called MyApp in "./my_app"'
|
||||||
'application:Generate the Rails application code'
|
'application:Generate the Rails application code'
|
||||||
'destroy:Undo code generated with "generate"'
|
'destroy:Undo code generated with "generate"'
|
||||||
|
|
||||||
'benchmarker:See how fast a piece of code runs'
|
'benchmarker:See how fast a piece of code runs'
|
||||||
'profiler:Get profile information from a piece of code'
|
'profiler:Get profile information from a piece of code'
|
||||||
'plugin:Install a plugin'
|
'plugin:Install a plugin'
|
||||||
|
|
||||||
|
'plugin new:Generates skeleton for developing a Rails plugin'
|
||||||
|
'runner:Run a piece of code in the application environment (short-cut alias: "r")'
|
||||||
)
|
)
|
||||||
|
|
||||||
_rails_generate_arguments() {
|
_rails_generate_arguments() {
|
||||||
generate_arguments=(
|
generate_arguments=(
|
||||||
|
assets
|
||||||
controller
|
controller
|
||||||
|
decorator
|
||||||
generator
|
generator
|
||||||
helper
|
helper
|
||||||
integration_test
|
integration_test
|
||||||
|
|
@ -36,9 +38,11 @@ _rails_generate_arguments() {
|
||||||
scaffold_controller
|
scaffold_controller
|
||||||
session_migration
|
session_migration
|
||||||
stylesheets
|
stylesheets
|
||||||
|
task
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(--version)--version[show version]' \
|
'(--version)--version[show version]' \
|
||||||
'(--help)--help[show help]' \
|
'(--help)--help[show help]' \
|
||||||
|
|
@ -50,7 +54,10 @@ if (( CURRENT == 1 )); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$words[1]" in
|
case "$words[1]" in
|
||||||
generate)
|
g|generate)
|
||||||
|
_rails_generate_arguments
|
||||||
|
_wanted generate_arguments expl 'all generate' compadd -a generate_arguments ;;
|
||||||
|
d|destroy)
|
||||||
_rails_generate_arguments
|
_rails_generate_arguments
|
||||||
_wanted generate_arguments expl 'all generate' compadd -a generate_arguments ;;
|
_wanted generate_arguments expl 'all generate' compadd -a generate_arguments ;;
|
||||||
esac
|
esac
|
||||||
|
|
@ -1,20 +1,70 @@
|
||||||
|
function _rails_command () {
|
||||||
|
if [ -e "script/server" ]; then
|
||||||
|
ruby script/$@
|
||||||
|
elif [ -e "script/rails" ]; then
|
||||||
|
ruby script/rails $@
|
||||||
|
elif [ -e "bin/rails" ]; then
|
||||||
|
bin/rails $@
|
||||||
|
else
|
||||||
|
rails $@
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function _rake_command () {
|
||||||
|
if [ -e "bin/rake" ]; then
|
||||||
|
bin/rake $@
|
||||||
|
else
|
||||||
|
rake $@
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
alias rails='_rails_command'
|
||||||
|
compdef _rails_command=rails
|
||||||
|
|
||||||
|
alias rake='_rake_command'
|
||||||
|
compdef _rake_command=rake
|
||||||
|
|
||||||
|
alias devlog='tail -f log/development.log'
|
||||||
|
alias prodlog='tail -f log/production.log'
|
||||||
|
alias testlog='tail -f log/test.log'
|
||||||
|
|
||||||
|
alias -g RED='RAILS_ENV=development'
|
||||||
|
alias -g REP='RAILS_ENV=production'
|
||||||
|
alias -g RET='RAILS_ENV=test'
|
||||||
|
|
||||||
|
# Rails aliases
|
||||||
|
alias rc='rails console'
|
||||||
|
alias rd='rails destroy'
|
||||||
|
alias rdb='rails dbconsole'
|
||||||
|
alias rg='rails generate'
|
||||||
|
alias rgm='rails generate migration'
|
||||||
|
alias rp='rails plugin'
|
||||||
|
alias ru='rails runner'
|
||||||
|
alias rs='rails server'
|
||||||
|
alias rsd='rails server --debugger'
|
||||||
|
|
||||||
|
# Rake aliases
|
||||||
|
alias rdm='rake db:migrate'
|
||||||
|
alias rdr='rake db:rollback'
|
||||||
|
alias rdc='rake db:create'
|
||||||
|
alias rds='rake db:seed'
|
||||||
|
alias rdd='rake db:drop'
|
||||||
|
alias rdtc='rake db:test:clone'
|
||||||
|
alias rdtp='rake db:test:prepare'
|
||||||
|
|
||||||
|
alias rlc='rake log:clear'
|
||||||
|
alias rn='rake notes'
|
||||||
|
alias rr='rake routes'
|
||||||
|
|
||||||
|
# legacy stuff
|
||||||
alias ss='thin --stats "/thin/stats" start'
|
alias ss='thin --stats "/thin/stats" start'
|
||||||
alias sg='ruby script/generate'
|
alias sg='ruby script/generate'
|
||||||
alias sd='ruby script/destroy'
|
alias sd='ruby script/destroy'
|
||||||
alias sp='ruby script/plugin'
|
alias sp='ruby script/plugin'
|
||||||
alias sr='ruby script/runner'
|
alias sr='ruby script/runner'
|
||||||
alias ssp='ruby script/spec'
|
alias ssp='ruby script/spec'
|
||||||
alias rdbm='rake db:migrate'
|
|
||||||
alias rdbtp='rake db:test:prepare'
|
|
||||||
alias migrate='rake db:migrate && rake db:test:prepare'
|
|
||||||
alias sc='ruby script/console'
|
alias sc='ruby script/console'
|
||||||
alias sd='ruby script/server --debugger'
|
alias sd='ruby script/server --debugger'
|
||||||
alias devlog='tail -f log/development.log'
|
|
||||||
alias testlog='tail -f log/test.log'
|
|
||||||
alias prodlog='tail -f log/production.log'
|
|
||||||
alias -g RET='RAILS_ENV=test'
|
|
||||||
alias -g REP='RAILS_ENV=production'
|
|
||||||
alias -g RED='RAILS_ENV=development'
|
|
||||||
|
|
||||||
function remote_console() {
|
function remote_console() {
|
||||||
/usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
|
/usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,4 @@
|
||||||
# Rails 3 aliases, backwards-compatible with Rails 2.
|
echo "It looks like you have been using the 'rails3' plugin,"
|
||||||
|
echo "which has been deprecated in favor of a newly consolidated 'rails' plugin."
|
||||||
function _rails_command () {
|
echo "You will want to modify your ~/.zshrc configuration to begin using it."
|
||||||
if [ -e "script/server" ]; then
|
echo "Learn more at https://github.com/robbyrussell/oh-my-zsh/pull/2240"
|
||||||
ruby script/$@
|
|
||||||
else
|
|
||||||
if [ -e "bin/rails" ]; then
|
|
||||||
bin/rails $@
|
|
||||||
else
|
|
||||||
rails $@
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
alias rc='_rails_command console'
|
|
||||||
alias rd='_rails_command destroy'
|
|
||||||
alias rdb='_rails_command dbconsole'
|
|
||||||
alias rdbm='rake db:migrate db:test:clone'
|
|
||||||
alias rg='_rails_command generate'
|
|
||||||
alias rgm='_rails_command generate migration'
|
|
||||||
alias rp='_rails_command plugin'
|
|
||||||
alias ru='_rails_command runner'
|
|
||||||
alias rs='_rails_command server'
|
|
||||||
alias rsd='_rails_command server --debugger'
|
|
||||||
alias devlog='tail -f log/development.log'
|
|
||||||
alias testlog='tail -f log/test.log'
|
|
||||||
alias prodlog='tail -f log/production.log'
|
|
||||||
alias rdm='rake db:migrate'
|
|
||||||
alias rdr='rake db:rollback'
|
|
||||||
alias -g RET='RAILS_ENV=test'
|
|
||||||
alias -g REP='RAILS_ENV=production'
|
|
||||||
alias -g RED='RAILS_ENV=development'
|
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,4 @@
|
||||||
# Rails 4 aliases
|
echo "It looks like you have been using the 'rails4' plugin,"
|
||||||
|
echo "which has been deprecated in favor of a newly consolidated 'rails' plugin."
|
||||||
function _rails_command () {
|
echo "You will want to modify your ~/.zshrc configuration to begin using it."
|
||||||
if [ -e "script/server" ]; then
|
echo "Learn more at https://github.com/robbyrussell/oh-my-zsh/pull/2240"
|
||||||
ruby script/$@
|
|
||||||
elif [ -e "script/rails" ]; then
|
|
||||||
ruby script/rails $@
|
|
||||||
else
|
|
||||||
ruby bin/rails $@
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
alias rc='_rails_command console'
|
|
||||||
alias rd='_rails_command destroy'
|
|
||||||
alias rdb='_rails_command dbconsole'
|
|
||||||
alias rdbm='rake db:migrate db:test:clone'
|
|
||||||
alias rg='_rails_command generate'
|
|
||||||
alias rgm='_rails_command generate migration'
|
|
||||||
alias rp='_rails_command plugin'
|
|
||||||
alias ru='_rails_command runner'
|
|
||||||
alias rs='_rails_command server'
|
|
||||||
alias rsd='_rails_command server --debugger'
|
|
||||||
alias devlog='tail -f log/development.log'
|
|
||||||
alias testlog='tail -f log/test.log'
|
|
||||||
alias prodlog='tail -f log/production.log'
|
|
||||||
alias rdm='rake db:migrate'
|
|
||||||
alias rdc='rake db:create'
|
|
||||||
alias rdr='rake db:rollback'
|
|
||||||
alias rds='rake db:seed'
|
|
||||||
alias rlc='rake log:clear'
|
|
||||||
alias rn='rake notes'
|
|
||||||
alias rr='rake routes'
|
|
||||||
|
|
|
||||||
|
|
@ -2,30 +2,32 @@
|
||||||
|
|
||||||
local _sublime_darwin_paths > /dev/null 2>&1
|
local _sublime_darwin_paths > /dev/null 2>&1
|
||||||
_sublime_darwin_paths=(
|
_sublime_darwin_paths=(
|
||||||
"/usr/local/bin/subl"
|
"/usr/local/bin/subl"
|
||||||
"$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
|
"$HOME/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
|
||||||
"$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
"$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
|
||||||
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
|
"$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||||
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
"/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
|
||||||
|
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
|
||||||
|
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $('uname') == 'Linux' ]]; then
|
if [[ $('uname') == 'Linux' ]]; then
|
||||||
if [ -f '/usr/bin/sublime_text' ]; then
|
if [ -f '/usr/bin/sublime_text' ]; then
|
||||||
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
|
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
|
||||||
else
|
else
|
||||||
st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
|
st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
|
||||||
fi
|
fi
|
||||||
alias st=st_run
|
alias st=st_run
|
||||||
|
|
||||||
elif [[ $('uname') == 'Darwin' ]]; then
|
elif [[ $('uname') == 'Darwin' ]]; then
|
||||||
|
|
||||||
for _sublime_path in $_sublime_darwin_paths; do
|
for _sublime_path in $_sublime_darwin_paths; do
|
||||||
if [[ -a $_sublime_path ]]; then
|
if [[ -a $_sublime_path ]]; then
|
||||||
alias subl="'$_sublime_path'"
|
alias subl="'$_sublime_path'"
|
||||||
alias st=subl
|
alias st=subl
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias stt='st .'
|
alias stt='st .'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,61 @@
|
||||||
alias zi='sudo zypper install'
|
#Alias for Zypper according to the offical Zypper's alias
|
||||||
alias zrf='sudo zypper refresh'
|
|
||||||
alias zs='zypper search'
|
#Main commands
|
||||||
alias zup='sudo zypper dist-upgrade'
|
alias z='sudo zypper' #call zypper
|
||||||
alias zrm='sudo zypper remove'
|
alias zh='sudo zypper -h' #print help
|
||||||
alias zp='sudo zypper patch'
|
alias zhse='sudo zypper -h se' #print help for the search command
|
||||||
alias zps='sudo zypper ps'
|
alias zlicenses='sudo zypper licenses' #prints a report about licenses and EULAs of installed packages
|
||||||
|
alias zps='sudo zypper ps' #list process using deleted files
|
||||||
|
alias zshell='sudo zypper shell' #open a zypper shell session
|
||||||
|
alias zsource-download='sudo zypper source-download' #download source rpms for all installed packages
|
||||||
|
alias ztos='sudo zypper tos' #shows the ID string of the target operating system
|
||||||
|
alias zvcmp='sudo zypper vcmp' #tell whether version1 is older or newer than version2
|
||||||
|
|
||||||
|
#Packages commands
|
||||||
|
alias zin='sudo zypper in' #install packages
|
||||||
|
alias zinr='sudo zypper inr' #install newly added packages recommended by already installed ones
|
||||||
|
alias zrm='sudo zypper rm' #remove packages
|
||||||
|
alias zsi='sudo zypper si' #install source of a package
|
||||||
|
alias zve='sudo zypper ve' #verify dependencies of installed packages
|
||||||
|
|
||||||
|
#Updates commands
|
||||||
|
alias zdup='sudo zypper dup' #upgrade packages
|
||||||
|
alias zlp='sudo zypper lp' #list necessary patchs
|
||||||
|
alias zlu='sudo zypper lu' #list updates
|
||||||
|
alias zpchk='sudo zypper pchk' #check for patches
|
||||||
|
alias zup='sudo zypper up' #update packages
|
||||||
|
alias zpatch='sudo zypper patch' #install patches
|
||||||
|
|
||||||
|
#Request commands
|
||||||
|
alias zif='sudo zypper if' #display info about packages
|
||||||
|
alias zpa='sudo zypper pa' #list packages
|
||||||
|
alias zpatch-info='sudo zyper patch-info' #display info about patches
|
||||||
|
alias zpattern-info='sudo zyper patch-info' #display info about patterns
|
||||||
|
alias zproduct-info='sudo zyper patch-info' #display info about products
|
||||||
|
alias zpch='sudo zypper pch' #list all patches
|
||||||
|
alias zpd='sudo zypper pd' #list products
|
||||||
|
alias zpt='sudo zypper pt' #list patterns
|
||||||
|
alias zse='sudo zypper se' #search for packages
|
||||||
|
alias zwp='sudo zypper wp' #list all packages providing the specified capability
|
||||||
|
|
||||||
|
#Repositories commands
|
||||||
|
alias zar='sudo zypper ar' #add a repository
|
||||||
|
alias zcl='sudo zypper clean' #clean cache
|
||||||
|
alias zlr='sudo zypper lr' #list repositories
|
||||||
|
alias zmr='sudo zypper mr' #modify repositories
|
||||||
|
alias znr='sudo zypper nr' #rename repositories (for the alias only)
|
||||||
|
alias zref='sudo zypper ref' #refresh repositories
|
||||||
|
alias zrr='sudo zypper rr' #remove repositories
|
||||||
|
|
||||||
|
#Services commands
|
||||||
|
alias zas='sudo zypper as' #adds a service specified by URI to the system
|
||||||
|
alias zms='sudo zypper ms' #modify properties of specified services
|
||||||
|
alias zrefs='sudo zypper refs' #refreshing a service mean executing the service's special task
|
||||||
|
alias zrs='sudo zypper rs' #remove specified repository index service from the sytem
|
||||||
|
alias zls='sudo zypper ls' #list services defined on the system
|
||||||
|
|
||||||
|
#Package Locks Management commands
|
||||||
|
alias zal='sudo zypper al' #add a package lock
|
||||||
|
alias zcl='sudo zypper cl' #Remove unused locks
|
||||||
|
alias zll='sudo zypper ll' #list currently active package locks
|
||||||
|
alias zrl='sudo zypper rl' #remove specified package lock
|
||||||
|
|
|
||||||
|
|
@ -41,3 +41,13 @@
|
||||||
|
|
||||||
* `zsw` aliases `rm .zeus.sock`
|
* `zsw` aliases `rm .zeus.sock`
|
||||||
* `zweep` aliases `rm .zeus.sock`
|
* `zweep` aliases `rm .zeus.sock`
|
||||||
|
|
||||||
|
`zdbr` aliases `zeus rake db:reset db:test:prepare`
|
||||||
|
`zdbreset` aliases `zeus rake db:reset db:test:prepare`
|
||||||
|
|
||||||
|
`zdbm` aliases `zeus rake db:migrate db:test:prepare`
|
||||||
|
`zdbmigrate` aliases `zeus rake db:migrate db:test:prepare`
|
||||||
|
|
||||||
|
`zdbc` aliases `zeus rake db:create`
|
||||||
|
|
||||||
|
`zdbcm` aliases `zeus rake db:create db:migrate db:test:prepare`
|
||||||
|
|
|
||||||
|
|
@ -53,3 +53,17 @@ alias zall='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
|
||||||
# Clean up crashed zeus instances.
|
# Clean up crashed zeus instances.
|
||||||
alias zsw='rm .zeus.sock'
|
alias zsw='rm .zeus.sock'
|
||||||
alias zweep='rm .zeus.sock'
|
alias zweep='rm .zeus.sock'
|
||||||
|
|
||||||
|
# Reset database
|
||||||
|
alias zdbr='zeus rake db:reset db:test:prepare'
|
||||||
|
alias zdbreset='zeus rake db:reset db:test:prepare'
|
||||||
|
|
||||||
|
# Migrate and prepare database
|
||||||
|
alias zdbm='zeus rake db:migrate db:test:prepare'
|
||||||
|
alias zdbmigrate='zeus rake db:migrate db:test:prepare'
|
||||||
|
|
||||||
|
# Create database
|
||||||
|
alias zdbc='zeus rake db:create'
|
||||||
|
|
||||||
|
# Create, migrate and prepare database
|
||||||
|
alias zdbcm='zeus rake db:create db:migrate db:test:prepare'
|
||||||
21
themes/amuse.zsh-theme
Normal file
21
themes/amuse.zsh-theme
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
# vim:ft=zsh ts=2 sw=2 sts=2
|
||||||
|
|
||||||
|
rvm_current() {
|
||||||
|
rvm current 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
rbenv_version() {
|
||||||
|
rbenv version 2>/dev/null | awk '{print $1}'
|
||||||
|
}
|
||||||
|
|
||||||
|
PROMPT='
|
||||||
|
%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
|
||||||
|
$ '
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}⭠ "
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
|
||||||
|
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
|
||||||
|
RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue