port
Install some basic preferred packages
port install bash bzip2 coreutils curl diffutils findutils gawk gnutar grep gzip less libressl rsync vim wget
Update repository
port update
Update all packages in tree
port selfupdate
Install python 2.7 and make it the default
port install python27 port select --set python python27
Use coreutils as defaults
In case you want to use GNU coreutils as all the base utilities instead of OS X's, here's a simple list of aliases to add to your .bashrc
:
alias [=g[ alias base32=gbase32 alias base64=gbase64 alias basename=gbasename alias cat=gcat alias chcon=gchcon alias chgrp=gchgrp alias chmod=gchmod alias chown=gchown alias chroot=gchroot alias cksum=gcksum alias comm=gcomm alias cp=gcp alias csplit=gcsplit alias cut=gcut alias date=gdate alias dd=gdd alias df=gdf alias dir=gdir alias dircolors=gdircolors alias dirname=gdirname alias du=gdu alias echo=gecho alias env=genv alias expand=gexpand alias expr=gexpr alias factor=gfactor alias false=gfalse alias fmt=gfmt alias fold=gfold alias groups=ggroups alias head=ghead alias hostid=ghostid alias id=gid alias install=ginstall alias join=gjoin alias kill=gkill alias link=glink alias ln=gln alias logname=glogname alias ls=gls alias md5sum=gmd5sum alias mkdir=gmkdir alias mkfifo=gmkfifo alias mknod=gmknod alias mktemp=gmktemp alias mv=gmv alias nice=gnice alias nl=gnl alias nohup=gnohup alias nproc=gnproc alias numfmt=gnumfmt alias od=god alias paste=gpaste alias pathchk=gpathchk alias pinky=gpinky alias pr=gpr alias printenv=gprintenv alias printf=gprintf alias ptx=gptx alias pwd=gpwd alias readlink=greadlink alias realpath=grealpath alias rm=grm alias rmdir=grmdir alias runcon=gruncon alias seq=gseq alias sha1sum=gsha1sum alias sha224sum=gsha224sum alias sha256sum=gsha256sum alias sha384sum=gsha384sum alias sha512sum=gsha512sum alias shred=gshred alias shuf=gshuf alias sleep=gsleep alias sort=gsort alias split=gsplit alias stat=gstat alias stdbuf=gstdbuf alias stty=gstty alias sum=gsum alias sync=gsync alias tac=gtac alias tail=gtail alias tee=gtee alias test=gtest alias timeout=gtimeout alias touch=gtouch alias tr=gtr alias true=gtrue alias truncate=gtruncate alias tsort=gtsort alias tty=gtty alias uname=guname alias unexpand=gunexpand alias uniq=guniq alias unlink=gunlink alias uptime=guptime alias users=gusers alias vdir=gvdir alias wc=gwc alias who=gwho alias whoami=gwhoami alias yes=gyes