-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·30 lines (24 loc) · 1.15 KB
/
install.sh
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
# Bash profile configuration
ln -sf ~/Code/dotfiles/bash/main.symlink ~/.bash_profile
# Git configuration
ln -sf ~/Code/dotfiles/git/gitconfig.symlink ~/.gitconfig
ln -sf ~/Code/dotfiles/git/gitignore.symlink ~/.gitignore
# Ruby configuration
ln -sf ~/Code/dotfiles/ruby/gemrc.symlink ~/.gemrc
# Only use UTF-8 in Terminal.app
defaults write com.apple.terminal StringEncodings -array 4
# Use a modified version of the Solarized Dark theme by default in Terminal.app
TERM_PROFILE='Jordi';
CURRENT_PROFILE="$(defaults read com.apple.Terminal 'Default Window Settings')";
if [ "${CURRENT_PROFILE}" != "${TERM_PROFILE}" ]; then
open "resources/${TERM_PROFILE}.terminal";
sleep 1; # Wait a bit to make sure the theme is loaded
defaults write com.apple.Terminal 'Default Window Settings' -string "${TERM_PROFILE}";
defaults write com.apple.Terminal 'Startup Window Settings' -string "${TERM_PROFILE}";
defaults import com.apple.Terminal "$HOME/Library/Preferences/com.apple.Terminal.plist"
fi;
. ~/.bash_profile
for app in "Terminal"; do
killall "${app}" > /dev/null 2>&1
done
echo "Done. Note that some of these changes require a logout/restart to take effect."