Sungju's Slow Life

Personal journal


Use colours in your Mac terminal

To use colours in your Mac terminal, you just need to put below in your ~/.bash_profile

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

export GREP_OPTIONS='--color=auto'
alias ls='ls -GFh'

For the vim, below would be work by put in ~/.vimrc

set nocompatible " must be the first line
set tabstop=4 shiftwidth=4 softtabstop=4
filetype on
filetype indent on
filetype plugin on
set laststatus=2
syntax on
set statusline=%<%f%h%m%r%=%-20.(line=%l  col=%c%V  totlin=%L%)  %h%m%r%=%-40(bytval=0x%B,%n%Y%)%P
hi StatusLine ctermbg=red ctermfg=white


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: