diff options
-rwxr-xr-x | new-user-setup.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/new-user-setup.sh b/new-user-setup.sh index f734b96..113bfa4 100755 --- a/new-user-setup.sh +++ b/new-user-setup.sh | |||
@@ -7,9 +7,9 @@ | |||
7 | # This script sets up a new account. As this is the dotfiles.core | 7 | # This script sets up a new account. As this is the dotfiles.core |
8 | # installer, only things which apply to every account are done here. | 8 | # installer, only things which apply to every account are done here. |
9 | # | 9 | # |
10 | # This installer assumes that the dotfiles.core repository has been | 10 | # This installer assumes that: |
11 | # cloned into the $HOME directory under the name 'dotfiles.core'. It | 11 | # - the dotfiles.core repository has been cloned into /usr/local/share/ |
12 | # should be cloned and run this way for every new user. | 12 | # - the user has at least rx permissions for /usr/local/share/dotfiles.core/ |
13 | # | 13 | # |
14 | # This installer also assumes that dotfiles.sys and all necessary | 14 | # This installer also assumes that dotfiles.sys and all necessary |
15 | # packages have been installed. | 15 | # packages have been installed. |
@@ -117,7 +117,7 @@ do true; done | |||
117 | ## Put files into place | 117 | ## Put files into place |
118 | ######################################################################## | 118 | ######################################################################## |
119 | # File placement function | 119 | # File placement function |
120 | place_file () { | 120 | place_symlink () { |
121 | file=$1 | 121 | file=$1 |
122 | target=$2 | 122 | target=$2 |
123 | if [[ -e $target ]]; then | 123 | if [[ -e $target ]]; then |
@@ -223,20 +223,20 @@ while | |||
223 | place_directory $HOME/bin | 223 | place_directory $HOME/bin |
224 | 224 | ||
225 | # Bash Configuration | 225 | # Bash Configuration |
226 | place_file $HOME/dotfiles.core/home/.bash_profile $HOME/.bash_profile | 226 | place_symlink /usr/local/share/dotfiles.core/home/.bash_profile $HOME/.bash_profile |
227 | place_file $HOME/dotfiles.core/home/.bashrc $HOME/.bashrc | 227 | place_symlink /usr/local/share/dotfiles.core/home/.bashrc $HOME/.bashrc |
228 | place_file $HOME/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases | 228 | place_symlink /usr/local/share/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases |
229 | 229 | ||
230 | # GPG Configuration | 230 | # GPG Configuration |
231 | place_directory $HOME/.gnupg/ | 231 | place_directory $HOME/.gnupg/ |
232 | place_file $HOME/dotfiles.core/home/.gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf | 232 | place_symlink /usr/local/share/dotfiles.core/home/.gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf |
233 | 233 | ||
234 | # Git configuration | 234 | # Git configuration |
235 | place_file $HOME/dotfiles.core/home/.gitconfig $HOME/.gitconfig | 235 | place_symlink /usr/local/share/dotfiles.core/home/.gitconfig $HOME/.gitconfig |
236 | echo -e "${WARN}WARNING: ~/.gitconfig.local should be placed manually${ENDCOLOR}" | 236 | echo -e "${WARN}WARNING: ~/.gitconfig.local should be placed manually${ENDCOLOR}" |
237 | 237 | ||
238 | # Common Lisp SBCL Configuration | 238 | # Common Lisp SBCL Configuration |
239 | place_file $HOME/dotfiles.core/home/.sbclrc $HOME/.sbclrc | 239 | place_symlink /usr/local/share/dotfiles.core/home/.sbclrc $HOME/.sbclrc |
240 | place_directory $HOME/lisp | 240 | place_directory $HOME/lisp |
241 | 241 | ||
242 | echo "INFO : Configuration files placed!" | 242 | echo "INFO : Configuration files placed!" |