Add various aliases
parent
fcf358169f
commit
3ef689f29a
|
|
@ -46,6 +46,15 @@ alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
||||||
alias md='mkdir -p'
|
alias md='mkdir -p'
|
||||||
alias rd=rmdir
|
alias rd=rmdir
|
||||||
|
|
||||||
|
# show / hide hidden files
|
||||||
|
alias showhidden="defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder"
|
||||||
|
alias hidehidden="defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder"
|
||||||
|
# display IP address
|
||||||
|
alias myip="echo ethernet:; ipconfig getifaddr en0; echo wireless:; ipconfig getifaddr en1"
|
||||||
|
|
||||||
|
# http://snippets.dzone.com/posts/show/2486
|
||||||
|
alias killsvn="find . -name ".svn" -type d -exec rm -rf {} \;"
|
||||||
|
|
||||||
function aliases-help() {
|
function aliases-help() {
|
||||||
echo "Generic Alias Usage"
|
echo "Generic Alias Usage"
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,12 @@ case $OSTYPE in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# git add remote branch
|
||||||
|
function garb() {
|
||||||
|
echo "Adding remote branch '$1'";
|
||||||
|
git config branch.$1.remote origin;
|
||||||
|
git config branch.$1.merge refs/heads/$1;
|
||||||
|
}
|
||||||
|
|
||||||
function git-help() {
|
function git-help() {
|
||||||
echo "Git Custom Aliases Usage"
|
echo "Git Custom Aliases Usage"
|
||||||
|
|
|
||||||
|
|
@ -18,3 +18,6 @@ alias buildsite="builtin cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll"
|
||||||
# Rsync the site to the remote server
|
# Rsync the site to the remote server
|
||||||
|
|
||||||
alias deploysite="builtin cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"
|
alias deploysite="builtin cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"
|
||||||
|
|
||||||
|
alias jkas="jekyll --auto --server"
|
||||||
|
alias rmjkas="rm -rf _site/* && jkas"
|
||||||
|
|
@ -14,6 +14,7 @@ alias dashcode="open -a dashcode"
|
||||||
alias f='open -a Finder '
|
alias f='open -a Finder '
|
||||||
alias textedit='open -a TextEdit'
|
alias textedit='open -a TextEdit'
|
||||||
alias hex='open -a "Hex Fiend"'
|
alias hex='open -a "Hex Fiend"'
|
||||||
|
alias gitx="open -a GitX"
|
||||||
|
|
||||||
if [ -s /usr/bin/firefox ] ; then
|
if [ -s /usr/bin/firefox ] ; then
|
||||||
unalias firefox
|
unalias firefox
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue