My .bash_profile

Don’t know why I never added it here, so doing it now.


alias ll="ls -al"
alias src="cd ~/workspace/"
alias ap="cd ~/workspace/git/antonperez/"

alias readyapi="/Applications/ReadyAPI-2.5.0.app/Contents/java/app/bin/ready-api.sh"

performGitOperations() {
    git fetch --all
    git checkout $1
    git reset --hard origin/$1
    git clean -fd
}

copom() {
    echo "[---------- START  ----------]"
    if [ "$2" = "all" ]; then
        echo "-->> blwebdriver <<--"
        cd ~/workspace/git/qa/blwebdriver
        performGitOperations $1
        echo "-->> blutilities <<--"
        cd ~/workspace/git/qa/blutilities
        performGitOperations $1
    fi

    echo "-->> blpages <<--"
    cd ~/workspace/git/qa/blpages
    performGitOperations $1
    echo "-->> blcucumber <<--"
    cd ~/workspace/git/qa/blcucumber
    performGitOperations $1
    echo "[---------- DONE ----------]"
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.