-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_general.sh
executable file
·50 lines (38 loc) · 1.67 KB
/
install_general.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install cv editorconfig multitail rsync tree
brew install --HEAD git-extras
# https://bitbucket.org/WAHa_06x36/theunarchiver
brew install unar
brew install coreutils freetype gawk gnu-sed bat htop-osx osxutils \
proctools psgrep wdiff up
# http://apple.stackexchange.com/questions/135565/how-do-i-get-detailed-smart-disk-information-on-os-x-mavericks-or-later
brew install smartmontools
export HOMEBREW_CASK_OPTS=--appdir=/Applications
brew install iterm2
if [[ ! -r ~/.itermcfg/com.googlecode.iterm2.plist ]]; then
cp ~/.homesick/repos/dotfile/.itermcfg/* ~/.itermcfg/ || true
## TODO get iterm2 to use this directory with applescripting magic.
fi
brew install --cask qlcolorcode qlstephen qlmarkdown quicklook-json \
qlprettypatch quicklook-csv webpquicklook suspicious-package \
font-fira-code-nerd-font ipynb-quicklook quickjson syntax-highlight
# Make QL plugins kosher
xattr -d -r com.apple.quarantine ~/Library/QuickLook
qlmanage -r
elif [[ -r /etc/redhat-release ]]; then
sudo dnf install -y rsync tree git-extras unar
else
sudo apt install -y rsync tree git-extras unar
fi
## Adding in some tmux magic. no need to care if you don't use tmux.
mkdir -p ~/src
git clone https://github.com/bnorick/tmux-config.git ~/src/tmux-config
~/src/tmux-config/install.sh
# Looks like we are done.
~/bin/imgcat ~/.homesick/repos/dotfiles/images/DanyThumbsUp.gif
echo
[[ "$OSTYPE" == "darwin"* ]] && echo "Iterm2 is set up, if you want to switch to it. Remember to set the font to Fura Code if you want beautiful powerline prompts"
echo "Looks good! Now run this:"
echo ~/.homesick/repos/dotfiles/install_dev.sh