This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _funct_capp_local_install | |
{ | |
local dirname response | |
if ! git clone https://github.com/280north/cappuccino.git . ; then | |
echo "Current directory is not empty, a $0 will only work" | |
echo "in an empty directory." | |
return | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ß="rails s" | |
alias ç="rails c" | |
alias ®="rake routes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _funct_cd_bundle_to() { | |
pushd $(bundle show $1) | |
} | |
alias cd-bundle-to=_funct_cd_bundle_to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias git-fetch-all="git remote | xargs -I % git fetch % && (git remote | xargs -I % git remote show %) | sed s'/* remote /################## /'g" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
ref=${ref#refs/heads/} | |
# allow for branch names: | |
# tick12+12_fubar | |
# tick12+12-fubar_sd | |
# ticket12+12-fubar_sd | |
# ticket12+12+123-fubar_sd | |
# or tick(et) replaced by issue (redmine conform) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
cp = cherry-pick | |
br = branch | |
lg = log | |
ms = merge --squash | |
rs = remote show | |
pish = push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _funct_gitosis_init { | |
## create a new remote repo once the gitosis conf has been updated | |
while getopts "h" option | |
do | |
case $option in | |
h) | |
echo "For example: gitosis-init [email protected]:username.git" | |
return | |
;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# arguments are: <branch1>..<branch2> is the argument | |
alias git-commit-diff="git log --pretty=oneline" | |
alias git-diff-commits=git-diff-commits | |
alias git-diff-file-names='git diff --name-status' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _funct_find_rails | |
{ | |
local app="" | |
local option= | |
local what=$* | |
local for_redmine="" | |
OPTIND=1 | |
while getopts "a:ers:" option | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# not an original poem, | |
# no known author, | |
# no known copyright, | |
# aesthetics over originality? | |
_..() { .._ ${@//[tt]?[^s]/2};} | |
__.() { echo -ne $@' ' ;} | |
one() { __. '1' && _.. $@ ;} |