Permanent aliases in bash

For errors installing ruby or gems please check this post answer on stackoverflow.com

  1. Add those lines to your .bashrc
    # Aliasses
    if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
    fi
  2. Create the file .bash_aliases in the root dicretory and put aliases you want on it. For example:
    # Rubygems
    alias gem='D:/tools/ruby/bin/gem'# Mailcatcher
    alias mc='D:/tools/ruby/bin/mailcatcher.bat'

 

One thought on “Permanent aliases in bash

Comments are closed.