You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
510 B
Bash
16 lines
510 B
Bash
# Condense and colorize the command prompt
|
|
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
|
|
|
# Colorize MacPorts GNU ls output
|
|
if [[ $(which gdircolors) = /opt/local/bin/gdircolors && \
|
|
$(which gls) = /opt/local/bin/gls ]]
|
|
then
|
|
eval "$(gdircolors -b)"
|
|
alias ls='gls --color=auto'
|
|
fi
|
|
|
|
# Enable command completion if using the MacPorts shell
|
|
src=/opt/local/etc/profile.d/bash_completion.sh
|
|
[[ $BASH = /opt/local/bin/bash && -f $src && -r $src ]] && . "$src"
|
|
unset src
|