리눅스 사용자 기본 환경 설정

1. .vimrc

set number
set laststatus=2
set hlsearch
set smartcase
set smartindent
set showmatch
set cindent
set tabstop=8
set shiftwidth=4
set softtabstop=4

" -- Function Key
map gT
map gt
map :tabe .


2. .bash_profile

export PS1='\n\u@\H [ \[\033[01;42m\] \w \[\033[00m\] ] <`date +"%F(%a) %H:%M"`>\n\! \$ '
export EDITOR=vim

alias ko='export LANG=ko_KR.UTF-8'
alias en='export LANG=en_US.UTF-8'

hname=`hostname`
echo ""
echo ""
echo "<< $hname >>"
echo ""
echo ""
echo -e "Kernel Details: " `uname -smr`
echo -e "`bash --version`"
echo ""
echo -ne "Uptime: "; uptime
echo -ne "Server time : "; date
echo ""
lastlog | grep $LOGNAME | awk {'print "Last login from : "$3
print "Last Login Date & Time: ",$4,$5,$6,$7,$8,$9;}'
echo ""
df -h

댓글

이 블로그의 인기 게시물

pidstat 명령어 프로세스 부하 보기

리눅스 채널 본딩 설정하기