bash script 안에서 alias 적용된 명령어 수행하는 방법 (.bashrc)

experience

  • bash shell 안에서 .bashrc에 설정된 alias 커맨드 실행하려하는데, command not found 발생...
 
- bash script 안에 source ~/.bashrc 위 라인에 다음을 추가하면 됨..
 
  • shopt -s expand_aliases
 
from : https://askubuntu.com/questions/98782/how-to-run-an-alias-in-a-shell-script

댓글