From owner-freebsd-questions@FreeBSD.ORG Tue Mar 28 10:29:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8652316A41F for ; Tue, 28 Mar 2006 10:29:02 +0000 (UTC) (envelope-from vaaf@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FA6943D48 for ; Tue, 28 Mar 2006 10:29:01 +0000 (GMT) (envelope-from vaaf@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IWU000AH2GCDP60@osl1smout1.broadpark.no> for freebsd-questions@freebsd.org; Tue, 28 Mar 2006 12:29:00 +0200 (CEST) Received: from urban.broadpark.no ([213.187.181.70]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IWU000FB2GC95G0@osl1sminn1.broadpark.no> for freebsd-questions@freebsd.org; Tue, 28 Mar 2006 12:29:00 +0200 (CEST) Date: Tue, 28 Mar 2006 12:29:02 +0200 From: Vaaf In-reply-to: <44290EC5.7080101@sensorsistemas.com.br> To: "Rodrigo G. Tavares de Souza" , freebsd-questions@freebsd.org Message-id: <7.0.1.0.2.20060328122638.023a4578@broadpark.no> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <44290EC5.7080101@sensorsistemas.com.br> Cc: Subject: Re: Changing prompt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 10:29:02 -0000 At 12:24 28.03.2006, Rodrigo G. Tavares de Souza wrote: >Hi, > > How could I show the path on prompt or see colored files when I > make a ls command? > >Best Regards, >Rodrigo Souza >Sao Paulo - Brazil >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" Try to install /usr/ports/shells/zsh, and use this as your /etc/zshrc: ### BEGIN umask 022 alias vi='vim' alias j='jobs -l' alias h='history' alias ls='ls -G' alias cd..='cd ..' alias cd...='cd ../..' alias cd....='cd ../../..' alias cd.....='cd ../../../..' alias cd......='cd ../../../../..' alias cd/='cd /' alias wf='w -f' alias ws='w -s' alias df='df -h' alias ftp='lftp' alias pfdump='tcpdump -n -e -ttt -r /var/log/pflog' alias pfmonitor='tcpdump -n -e -ttt -i pflog0' alias pfreload='pfctl -F all && pfctl -f /etc/pf.conf' alias pfshow='pfctl -vvsr' autoload -U compinit compinit -C zstyle ':completion:*' completer _complete _prefix zstyle ':completion::prefix-1:*' completer _complete zstyle ':completion:incremental:*' completer _complete _correct zstyle ':completion:predict:*' completer _complete zstyle ':completion::complete:*' use-cache 1 zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST zstyle ':completion:*' expand 'yes' zstyle ':completion:*' squeeze-slashes 'yes' zstyle ':completion::complete:*' '\' zstyle ':completion::complete:*:tar:directories' file-patterns '*~.*(-/)' zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~' zstyle ':completion:*:matches' group 'yes' zstyle ':completion:*:options' description 'yes' zstyle ':completion:*:options' auto-description '%d' zstyle ':completion:*:history-words' stop verbose zstyle ':completion:*:history-words' remove-all-dups yes zstyle ':completion:*:history-words' list false zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%m/%d/%y}' PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' if [[ `whoami` = root ]] then PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;31m%}%D{%m/%d/%y}' PROMPT+=$'%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' fi ### END This is truly a beautiful prompt. Enjoy, Vaaf