๋ฐ์ํ
source ~/.zsh
source ~/.bash_profile ํด์ค๋ ๊ทธ ๋ ๋ฟ. ํฐ๋ฏธ๋ ์ฐฝ์ด ๋ค๋ฅด๊ฑฐ๋ ์๋ก ์ด ๋ ๋ง๋ค ์ ์ง๋ํด์ ๊ฐ๋นก
์๋ ๋งํฌ ์ฐธ์กฐ ํด์ ์คํํ๋ ์์ฃผ ์๋จ.
+ ์๋์ฐ/๋ฆฌ๋ ์ค ์์์ ์ ์ฐ๋ ๋ช ๋ น์ด๋ง ๋ฃ์ด๋ ๋
vi ~/.bash_profile
#.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#============================================================
#
# ALIASES AND FUNCTIONS
# Arguably, some functions defined here are quite big.
# If you want to make this file smaller, these functions can
#+ be converted into scripts and removed from here.
#
#============================================================
#-------------------
# Personnal Aliases
#-------------------
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cl='clear'
#-------------------------------------------------------------
# The 'ls' family (this assumes you use a recent GNU ls).
#-------------------------------------------------------------
# Add colors for filetype and human-readable sizes by default on 'ls':
alias ls='ls -h'
alias lx='ls -lXB' # Sort by extension.
alias lk='ls -lSr' # Sort by size, biggest last.
alias lt='ls -ltr' # Sort by date, most recent last.
alias lc='ls -ltcr' # Sort by/show change time,most recent last.
alias lu='ls -ltur' # Sort by/show access time,most recent last.
# The ubiquitous 'll': directories first, with alphanumeric sorting:
alias ll="ls -alv"
alias lm='ll |more' # Pipe through 'more'
alias lr='ll -R' # Recursive ls.
alias la='ll -A' # Show hidden files.
alias tree='tree -Csuh' # Nice alternative to 'recursive ls' ...