-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
44 lines (33 loc) · 1.2 KB
/
init.sh
File metadata and controls
44 lines (33 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# OS X Config File - Carlos Cuesta
# This file handles all my configuration for the OS X system that I'm using like preferences and other stuff.
source './osx/utils.sh'
execution_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
clear
print_in_purple '\nOS X Config Dotfiles - Carlos Cuesta\n\n'
ask_for_sudo
chmod u+x ./osx/*.sh
chmod u+x ./osx/software/*.sh
./osx/computer-info.sh
./osx/osx-preferences.sh
./osx/software/xcode-install.sh
./osx/zsh-ohmyzsh.sh
# Copying the dotfiles to the home folder
# .zshrc, .gitconfig, .gitignore -> $HOME
for file in $execution_dir/.{zshrc,gitconfig,gitignore}; do
execute "cp -iv "$file" $HOME/"
done;
unset file;
# materialshell.zsh-theme -> $HOME/.oh-my-zsh/themes
execute "cp -iv $execution_dir/materialshell.zsh-theme $HOME/.oh-my-zsh/themes/"
print_success ".zshrc,.gitconfig,materialshell.zsh-theme copied!."
./osx/git-config.sh
directory_exists "$HOME/.dotfiles"
# .files -> $HOME/.dotfiles/
for files in $execution_dir/.{aliases,functions,exports,extra}; do
execute "cp -iv "$files" $HOME/.dotfiles/";
done;
unset files;
print_success ".files copied to your $HOME/.dotfiles/ directory."
./osx/software/brew-install.sh
./osx/software/brew-packages.sh
./osx/restart.sh