Skip to content

Instantly share code, notes, and snippets.

@geunho
Created January 23, 2019 04:29
Show Gist options
  • Save geunho/5c8df7f566c9e1ffe24f85c72ca4ba92 to your computer and use it in GitHub Desktop.
Save geunho/5c8df7f566c9e1ffe24f85c72ca4ba92 to your computer and use it in GitHub Desktop.
.bashrc
# 로그인이 아닌 Non-interactive shell에서는 프로파일을 로드하지 않는 default 설정이 들어간 경우가 있다.
#
# 예. Ubuntu default .bashrc의 시작 부분
#
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# 이러한 설정이 있는 경우 SSH를 통한 커맨드 수행과 같은 일을 할 때 non-interactive shell로 실행되기 때문에 환경 변수를 읽어들이지 않게된다.
# 위 내용을 전부 삭제하거나 코멘트 처리하면 된다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment