Friday, 24 February 2012

bash_profile bashrc Mac users think differently

Been trying to hack my Macbook to replace my Ubuntu work environment.
although MOST things are portable .. but I am finding that Mac users actually live with a lot of inconveniences for which there are hacks / solutions ..

like the aerosnap feature in Win7?
do yourself a favour and get this

One thing that brings a chuckle to my face.
There's a lot of sites that 'solves' the missing bashrc problem by inserting in the the bash_profile that 'Mac uses instead'

Oh gosh just rename your bashrc to bash_profile and hope ur bash customizations ain't Mac averse

I am still trying to find how to write to NTFS in Lion .... I can't believe that if it's working fine in Ubuntu I might possibly have to fork out money to implement this. Seriously Apple should just pay for the NTFS licence just to make the point that Mac is friendlier to multi platforms OR allow users to implement NTFS write with the caveat that it's a reverse engineered hack

vim syntax isn't turned on by default (WHY??)
quick fix
cp  /usr/share/vim/vim73/vimrc_example.vim ~/.vimrc

context coloring in bash Terminal (Why would Mac ship with default B&W color schemes?)
Check out the link above,
essentially insert these 2 lines

export CLICOLOR=1export LSCOLORS=GxFxCxDxBxegedabagaced

into your .bash_profile (not .profile )

Note: when working with vim, try to remember that crtl works as control and command is as per Linux / Win (not fun to mix up the keys on important documents)

add this alias will keep you from pulling your hair out when working in Mac and Linux environments
alias md5sum='md5 -r'
Note that it will mean nothing in Linux
But if you liked to use 'md5sum -c' like me, you might have to install md5sum proper :( I am delaying this but I don't think looking md5sums by eye is fun or accurate)


  1. I was going to say that the answer is FUSE and NTFS-3G, but it looks like the project is dead. It looks like there is a paid solution based in it:

  2. Yeah that'swhere I am now.
    I actually researched. This b4 deciding on a Mac. Didn't think if it works in Ubuntu, it (fuse ntfs ) won't in Mac .

    Sucks that bams are usually bigger than 4gb file splitting would be a pain


Datanami, Woe be me