Skip to content

Instantly share code, notes, and snippets.

@teledirigido
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teledirigido/44ade2913200392ffe17 to your computer and use it in GitHub Desktop.
Save teledirigido/44ade2913200392ffe17 to your computer and use it in GitHub Desktop.
Useful alias for your bash_profile
# Open your bashprofile
alias openbash="subl ~/.bash_profile";
# Thanks to jamie@blacksheepdesign.co.nz
alias showFiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app";
alias hideFiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app";
# Add bitbucket origin to your repo. This function accepts parameters on your command line.
# [username] : your bitbucket username
#
# USAGE : addbitbucket myproject
add_bitbucket() {
if [ -z "$1" ]
then
echo "Where is the name of your Repo? :("
return 0
else
git remote add origin git@bitbucket.org:blacksheepdesign/$1.git
fi
}
alias addbitbucket=add_bitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment