Cleanup some old aliases and functions
This commit is contained in:
parent
178e1873a4
commit
d7e9e66ff7
1
aliases
1
aliases
|
@ -35,7 +35,6 @@ alias bld='brew link --overwrite --dry-run'
|
|||
alias bower='noglob bower'
|
||||
alias bu='bundle update'
|
||||
alias bo='bundle open'
|
||||
alias chrome='google-chrome-stable'
|
||||
alias clipboard='xclip -selection c'
|
||||
alias cloc='cloc --no3 --by-file-by-lang .'
|
||||
alias cls=clear
|
||||
|
|
23
functions
23
functions
|
@ -59,26 +59,17 @@ function git-on-master {
|
|||
git rebase master
|
||||
}
|
||||
|
||||
function rrg {
|
||||
rake routes | grep $1
|
||||
}
|
||||
|
||||
function take {
|
||||
mkdir $1
|
||||
cd $1
|
||||
}
|
||||
|
||||
# Allows commit message without typing quotes (can't have quotes in the commit msg though).
|
||||
function gc {
|
||||
git commit -m "$*"
|
||||
}
|
||||
|
||||
# Search google for a term
|
||||
function google() {
|
||||
if [[ $platform == 'Darwin' ]]; then
|
||||
open /Applications/Google\ Chrome.app/ "http://www.google.com/search?q= $1";
|
||||
else
|
||||
crome "http://www.google.com/search?q= $1";
|
||||
chrome "http://www.google.com/search?q= $1";
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -95,15 +86,3 @@ function chrome () {
|
|||
function hist() {
|
||||
cat ~/.history|cut -d ';' -f 2- 2>/dev/null| awk '{a[$1]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
|
||||
}
|
||||
|
||||
function bump_gem_version {
|
||||
if [[ $# -eq 0 ]]; then
|
||||
echo "usage: $0 <version>"
|
||||
else
|
||||
echo "Committing version bump"
|
||||
git add . && git commit -m "Version ${1}"
|
||||
echo "Creating tag v$1"
|
||||
git tag -a v${1} -m "Tagging v${1}"
|
||||
git push origin && git push origin --tags
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user