Skip to content

Instantly share code, notes, and snippets.

@geunho
Created August 24, 2016 00:43
Show Gist options
  • Save geunho/648381b0e4e9207e9c5af7b73e402c4b to your computer and use it in GitHub Desktop.
Save geunho/648381b0e4e9207e9c5af7b73e402c4b to your computer and use it in GitHub Desktop.
Ubuntu bash skeleton 파일 추가
#!/bin/bash
#
# Ubuntu
# 기본 bash 파일이 없는 경우 (.bashrc, .profile)
# skeleton 파일을 복사하여 추가
##################################
if [ ! -f "~/.bashrc" ]; then
cp /etc/skel/* ~/
source ~/.profile
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment