Skip to content

Command Line Convenience

justinsb edited this page Apr 26, 2012 · 2 revisions

(This is a work in progress...)

# Create aliases for our tools
echo "alias pl='~/platformlayer/bin/pl'" >> ~/.bash_aliases
echo "alias ks='~/platformlayer/bin/ks'" >> ~/.bash_aliases

# If you're on a Mac, you'll need to make sure the aliases file is loaded
echo "# Load Aliases file" >> ~/.bash_profile
echo "if [ -f ~/.bash_aliases ]; then" >> ~/.bash_profile
echo "	. ~/.bash_aliases" >> ~/.bash_profile
echo "fi" >> ~/.bash_profile

# Include these new aliases into the running shell
# (This gets run on new shells, but downloading is slow enough...)
. ~/.profile

# Or on a Mac 
. ~/.bash_profile