Skip to content

Instantly share code, notes, and snippets.

@simon-johansson
Last active October 13, 2015 21:58
Show Gist options
  • Save simon-johansson/4261988 to your computer and use it in GitHub Desktop.
Save simon-johansson/4261988 to your computer and use it in GitHub Desktop.
.bash_profile: All my aliases and shortcuts
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