parent
a6d20e67fe
commit
3802bcc6a6
|
|
@ -15,6 +15,8 @@ alias gb='git branch'
|
||||||
alias gba='git branch -a'
|
alias gba='git branch -a'
|
||||||
alias gcount='git shortlog -sn'
|
alias gcount='git shortlog -sn'
|
||||||
alias gcp='git cherry-pick'
|
alias gcp='git cherry-pick'
|
||||||
|
alias gco='git checkout'
|
||||||
|
alias gexport='git archive --format zip --output'
|
||||||
|
|
||||||
function git-help() {
|
function git-help() {
|
||||||
echo "Git Custom Aliases Usage"
|
echo "Git Custom Aliases Usage"
|
||||||
|
|
@ -32,5 +34,7 @@ function git-help() {
|
||||||
echo " gba = git branch -a"
|
echo " gba = git branch -a"
|
||||||
echo " gcount = git shortlog -sn"
|
echo " gcount = git shortlog -sn"
|
||||||
echo " gcp = git cherry-pick"
|
echo " gcp = git cherry-pick"
|
||||||
|
echo " gco = git checkout"
|
||||||
|
echo " gexport = git git archive --format zip --output"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,56 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# heroku
|
||||||
|
alias h='heroku'
|
||||||
|
alias hl='heroku list'
|
||||||
|
alias hi='heroku info'
|
||||||
|
alias ho='heroku open'
|
||||||
|
|
||||||
|
# dynos and workers
|
||||||
|
alias hd='heroku dynos'
|
||||||
|
alias hw='heroku workers'
|
||||||
|
|
||||||
|
# rake console
|
||||||
|
alias hr='heroku rake'
|
||||||
|
alias hcon='heroku console'
|
||||||
|
|
||||||
|
# new and restart
|
||||||
|
alias hnew='heroku create'
|
||||||
|
alias hrestart='heroku restart'
|
||||||
|
|
||||||
|
# logs
|
||||||
|
alias hlog='heroku logs'
|
||||||
|
alias hlogs='heroku logs'
|
||||||
|
|
||||||
|
# maint
|
||||||
|
alias hon='heroku maintenance:on'
|
||||||
|
alias hoff='heroku maintenance:off'
|
||||||
|
|
||||||
|
# heroku configs
|
||||||
|
alias hc='heroku config'
|
||||||
|
alias hca='heroku config:add'
|
||||||
|
alias hcr='heroku config:remove'
|
||||||
|
alias hcc='heroku config:clear'
|
||||||
|
|
||||||
|
function heroku-help() {
|
||||||
|
echo "Heroku Aliases Usage"
|
||||||
|
echo
|
||||||
|
echo " h = heroku"
|
||||||
|
echo " hl = heroku list"
|
||||||
|
echo " hi = heroku info"
|
||||||
|
echo " ho = heroku open"
|
||||||
|
echo " hd = heroku dynos"
|
||||||
|
echo " hw = heroku workers"
|
||||||
|
echo " hr = heroku rake"
|
||||||
|
echo " hcon = heroku console"
|
||||||
|
echo " hnew = heroku create"
|
||||||
|
echo " hrestart = heroku restart"
|
||||||
|
echo " hlog = heroku logs"
|
||||||
|
echo " hon = heroku maintenance:on"
|
||||||
|
echo " hoff = heroku maintenance:off"
|
||||||
|
echo " hc = heroku config"
|
||||||
|
echo " hca = heroku config:add"
|
||||||
|
echo " hcr = heroku config:remove"
|
||||||
|
echo " hcc = heroku config:clear"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
@ -12,10 +12,12 @@ alias ra='rails application'
|
||||||
alias rd='rails destroy'
|
alias rd='rails destroy'
|
||||||
|
|
||||||
alias ss='script/server'
|
alias ss='script/server'
|
||||||
|
alias ts="thin start" # thin server
|
||||||
alias sc='script/console'
|
alias sc='script/console'
|
||||||
alias restartapp='touch tmp/restart.txt'
|
alias restartapp='touch tmp/restart.txt'
|
||||||
|
alias restart='touch tmp/restart.txt' # restart passenger
|
||||||
alias devlog='tail -f log/development.log'
|
alias devlog='tail -f log/development.log'
|
||||||
|
alias taild='tail -f log/development.log' # tail dev log
|
||||||
|
|
||||||
function rails-help() {
|
function rails-help() {
|
||||||
echo "Rails Aliases Usage"
|
echo "Rails Aliases Usage"
|
||||||
|
|
@ -23,6 +25,7 @@ function rails-help() {
|
||||||
echo " r = rails"
|
echo " r = rails"
|
||||||
echo " rg = rails generate"
|
echo " rg = rails generate"
|
||||||
echo " rs/ss = rails server"
|
echo " rs/ss = rails server"
|
||||||
|
echo " ts = thin server"
|
||||||
echo " rc/sc = rails console"
|
echo " rc/sc = rails console"
|
||||||
echo " rn = rails new"
|
echo " rn = rails new"
|
||||||
echo " rd = rails dbconsole"
|
echo " rd = rails dbconsole"
|
||||||
|
|
@ -30,7 +33,9 @@ function rails-help() {
|
||||||
echo " ra = rails application"
|
echo " ra = rails application"
|
||||||
echo " rd = rails destroy"
|
echo " rd = rails destroy"
|
||||||
echo " restartapp = touch tmp/restart.txt"
|
echo " restartapp = touch tmp/restart.txt"
|
||||||
|
echo " restart = touch tmp/restart.txt"
|
||||||
echo " devlog = tail -f log/development.log"
|
echo " devlog = tail -f log/development.log"
|
||||||
|
echo " taild = tail -f log/development.log"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue