메뉴 건너뛰기

Dev tips

Linux Server 리눅스를 편하게 사용하기 위한 셋팅

taknim 2009.09.17 00:20 조회 수 : 8740 추천:2369

리눅스를 편하게 사용하기 위한 셋팅

>vi ~/.bashrc
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
alias ll='ls -la'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i -f'
alias ft='cd /usr/local/bin'
alias clr='clear'
alias c.='cd ..'
alias c..='cd ../..'
alias c...='cd ../../..'
alias q='exit'
alias rg='rgrep'

PS1="[\u]:[\w]"
VISUAL=emacs
export VISUAL
export TERM=xterm-color

>vi ~/.vimrc
set tabstop=4
set vb t_vb=
syntax on
colorscheme evening

>vi ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME

색깔 변경~
>vi /etc/DIR_COLORS
DIR 01;34 # directory
-> DIR 01;35 # directory