Last active
August 29, 2015 14:21
-
-
Save teledirigido/44ade2913200392ffe17 to your computer and use it in GitHub Desktop.
Useful alias for your bash_profile
This file contains hidden or 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
# Open your bashprofile | |
alias openbash="subl ~/.bash_profile"; | |
# Thanks to [email protected] | |
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 [email protected]: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