Last active
October 13, 2015 21:58
-
-
Save simon-johansson/4261988 to your computer and use it in GitHub Desktop.
.bash_profile: All my aliases and shortcuts
This file contains 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
alias dropbox="cd ~/Dropbox" | |
alias ploj="cd ~/GD/projekt/html5/__ploj" | |
alias simon="cd ~/" | |
alias desk="cd ~/Desktop" | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias open="start ." | |
alias lsa="ls -a" | |
alias tumblr="ruby tumblr-photo-downloader.rb" | |
#Delete the git-repo in the folder that your in | |
#alias delrepo="rm -rf .git" | |
function delrepo() { | |
read -p "Are you sure? " x | |
if [ "$x" = "yes" ]; then | |
# do the dangerous stuff | |
rm -rf .git | |
echo "Deleted!" | |
else | |
echo "Not deleted" | |
fi | |
} | |
alias editprofile="vim ~/.bash_profile" | |
# Reload this file in the shell, useful after making changes | |
alias reload='source ~/.bash_profile' | |
function html5() { | |
git clone git://github.com/simon-johansson/HTML5-Boilerplate.git $1; | |
cd $1; | |
rm -rf .git .gitignore README.md; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment