Terminal OS X

Pour les néophyte unix soyez rassuré ceci fonctionne aussi bien sur Tiger, Leopard ou Snow Leopard

.bashrc

Voici un .bashrc à placer dans votre /home sur votre mac pour avoir un peu plus de couleur dans votre terminal (terminal.app). Attention à sauvegarder votre précédent .batchrc

# ~/.bashrc: executed by bash(1) for non-login shells.
 
export PS1='\h:\w\$ '
umask 022
 
export CLICOLOR=1
 
alias ll='ls -l'
alias la='ls -A'
alias vi='vim'
alias l='ls -CF'
 
function cyan_red_prompt
{
 
local CYAN="\[\033[0;36m\]"
local GRAY="\[\033[0;37m\]"
local RED="\[\033[0;31m\]"
 
PS1="${CYAN}[\u@\h ${RED}\w${CYAN}]${GRAY} "
}
 
cyan_red_prompt

.profile Et voici le .profile à placer également dans votre home pour lancer le .bashrc

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
 
# the default umask is set in /etc/profile
#umask 022
 
# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f ~/.bashrc ]; then
        . ~/.bashrc
    fi
fi
 
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi