๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์นดํ…Œ๊ณ ๋ฆฌ ์—†์Œ

Mac Alias ์„ค์ •

๋ฐ˜์‘ํ˜•

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' ...

 

 

 

 

 

https://blog.pigno.se/post/130756784138/mac-%EC%9C%A0%EC%A0%80%EB%A5%BC-%EC%9C%84%ED%95%9C-alias-%EC%84%A4%EC%A0%95

 

MAC ์œ ์ €๋ฅผ ์œ„ํ•œ alias ์„ค์ •.

๊ธฐ์กด์— Git์ด๋‚˜ bower, npm์„ ์‚ฌ์šฉํ•˜๋Š” ์œ ์ €์ด๊ฑฐ๋‚˜, ๋ฆฌ๋ˆ…์Šค ํ˜น์€ ์œ ๋‹‰์Šค ๊ณ„์—ด ๊ฐœ๋ฐœ์ž์ผ ๊ฒฝ์šฐ MAC์—์„œ ll๊ณผ ๊ฐ™์€ ๋‹จ์ถ• alias๊ฐ€ ํ•„์š”ํ•˜๊ธฐ ๋งˆ๋ จ์ด๋‹ค. MAC์—์„œ๋Š” ~/.bash_profile์„ ์ƒ์„ฑํ•˜์—ฌ alias๋ฅผ ์„ค์ • ๊ฐ€๋Šฅํ•˜

blog.pigno.se