MethylBlue
  1. Filelight
  2. Codeine
  3. Wocka
  4. Blog
  5. Detritus
  6. Home
RSS

Tweaking the Mac OS X command line

Follows a list of tweaks for OS X I found necessary for a CLI user like me.

Better VIM

  • Edit ~/.vimrc
  • syntax on
    set autoindent
    set smartindent
    set ts=4
    set backspace=indent,eol,start

The cryptic last line makes backspace work how you would expect.

Coloured ls Output

  • Edit ~/.profile
  • export CLICOLOR=1
    export LSCOLORS=ExFxCxDxBxegedabagacad

Improved Profile

  • Edit ~/.profile
  • export HISTSIZE=10000
    export HISTFILESIZE=10000
    export HISTCONTROL=ignoredups
    export EDITOR=vim

    alias la="ls -a"
    alias l="ls -la"
    alias ..="cd .."
    alias ps="ps -cU `whoami`"

    GREEN="\[\033[1;32m\]”
    RESET=”\[\033[0m\]”

    export PS1=”$GREEN\W$RESET\$ ”
    export PS2=’> ‘

The ps alias gives a much better output with dependency information and all that jazz. Try it. The .. alias is also a huge time-saver :)

One Response

  1. Tweaking the Mac OS X command line | MethylBlue

    /usr log

Leave a Reply