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 bower='noglob bower'
|
||||||
alias bu='bundle update'
|
alias bu='bundle update'
|
||||||
alias bo='bundle open'
|
alias bo='bundle open'
|
||||||
alias chrome='google-chrome-stable'
|
|
||||||
alias clipboard='xclip -selection c'
|
alias clipboard='xclip -selection c'
|
||||||
alias cloc='cloc --no3 --by-file-by-lang .'
|
alias cloc='cloc --no3 --by-file-by-lang .'
|
||||||
alias cls=clear
|
alias cls=clear
|
||||||
|
|
23
functions
23
functions
|
@ -59,26 +59,17 @@ function git-on-master {
|
||||||
git rebase master
|
git rebase master
|
||||||
}
|
}
|
||||||
|
|
||||||
function rrg {
|
|
||||||
rake routes | grep $1
|
|
||||||
}
|
|
||||||
|
|
||||||
function take {
|
function take {
|
||||||
mkdir $1
|
mkdir $1
|
||||||
cd $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
|
# Search google for a term
|
||||||
function google() {
|
function google() {
|
||||||
if [[ $platform == 'Darwin' ]]; then
|
if [[ $platform == 'Darwin' ]]; then
|
||||||
open /Applications/Google\ Chrome.app/ "http://www.google.com/search?q= $1";
|
open /Applications/Google\ Chrome.app/ "http://www.google.com/search?q= $1";
|
||||||
else
|
else
|
||||||
crome "http://www.google.com/search?q= $1";
|
chrome "http://www.google.com/search?q= $1";
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,15 +86,3 @@ function chrome () {
|
||||||
function hist() {
|
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
|
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