Skip to content

Commit 6eadcbb

Browse files
committed
Create a script to install applications, remove that stuff from the dotbot install. Install tux and tmuxinator.
1 parent 965a68e commit 6eadcbb

11 files changed

+198
-31
lines changed

apps

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Install frequently used command line applications
4+
5+
# Exit when a command fails
6+
set -o errexit
7+
# Exit when a command in a pipe fails
8+
set -o pipefail
9+
# Exit when undeclared variable used
10+
set -o nounset
11+
# Enable xtrace for debugging
12+
# set -o xtrace
13+
14+
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
15+
cd "${BASEDIR}"
16+
17+
echo -----------------------------------------------
18+
echo Install homebrew if it is not already installed
19+
echo -----------------------------------------------
20+
which brew || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
21+
22+
echo ---------------
23+
echo Update homebrew
24+
echo ---------------
25+
brew update
26+
27+
echo -----------
28+
echo Install ACK
29+
echo -----------
30+
brew install ack
31+
32+
echo ----------------
33+
echo Install postgres
34+
echo ----------------
35+
brew install postgres
36+
# Make the LaunchAgents directory
37+
mkdir -p ~/Library/LaunchAgents
38+
# Create a symbolic link to the postgres plist file
39+
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
40+
# Launch postgres
41+
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
42+
43+
44+
echo --------------------
45+
echo Install rvm and ruby
46+
echo --------------------
47+
# Install RVM stable if it is not already installed
48+
# which rvm || \curl -sSL https://get.rvm.io | bash -s stable'
49+
# Update rvm
50+
rvm get stable
51+
# Install Ruby 2.2.1
52+
rvm install 2.2.1
53+
54+
echo ------------
55+
echo Install tmux
56+
echo ------------
57+
brew install tmux
58+
tmux -V
59+
60+
echo ------------------
61+
echo Install tmuxinator
62+
echo ------------------
63+
gem install tmuxinator
64+
tmuxinator doctor
65+
66+
echo --------------
67+
echo Install redis
68+
echo --------------
69+
brew install redis
70+
71+
# ----------------------
72+
# Other things to install
73+
# ----------------------
74+
# Foreman
75+
# https://github.com/ddollar/foreman
76+
# Navicat
77+
# Rubymine
78+
#

bash_profile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
if [ -f ~/.bashrc ]; then
3+
source ~/.bashrc
4+
fi
5+

bashrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
3+
4+
export EDITOR='vim' # Make vim the default editor

gvimrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
" Configure the UI.
3-
"color jellybeans
4-
color molokai
3+
color jellybeans
4+
"color molokai
55
set guifont=Monaco:h12
66
set guioptions-=T " Removes top toolbar
77
set guioptions-=r " Removes right hand scroll bar

install.conf.yaml

+9-29
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,22 @@
55
~/.vim: vim/
66
~/.vimrc: vimrc
77
~/.gvimrc: gvimrc
8-
8+
~/.bash_profile: bash_profile
9+
~/.bashrc: bashrc
10+
~/.profile: profile
11+
~/.tmuxinator: tmuxinator/
912

1013
- shell:
1114
# Update DotBot and other git submodules
1215
- [git submodule update --init --recursive, Installing submodules]
1316
# Make MacVim the default handler for text files.
1417
- ["defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'", "Making MacVim the default text editor"]
1518

16-
# Install rvm and ruby
17-
# - ['which rvm || \curl -sSL https://get.rvm.io | bash -s stable', Install RVM stable if it is not already installed]
18-
# - [rvm get stable, Update RVM]
19-
- [rvm install 2.2.1, Install Ruby 2.2.1]
20-
21-
# update homebrew
22-
- ['which brew || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"',
23-
Install homebrew if its not already installled]
24-
- [brew update, Update homebrew]
25-
26-
# Install postgres
27-
-
28-
description: Install postgress with Homebrew
29-
command: brew install postgres
30-
stdout: true
31-
stderr: true
32-
- [mkdir -p ~/Library/LaunchAgents, Make the LaunchAgents directory]
33-
- [ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents, Create a symbolic link to the postgres plist file]
34-
- [launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist, Launch postgress]
35-
3619
# Install/update VIM plugins with Vundler.
3720
- ['vim +PluginInstall +qall', Update VIM plugins with Vundler]
3821

39-
40-
41-
42-
#-
43-
#description: Update RVM
44-
#command: 'rvm get stable'
45-
#stdout: true
46-
#stderr: true
22+
#-
23+
#description: Update RVM
24+
#command: 'rvm get stable'
25+
#stdout: true
26+
#stderr: true

profile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GIT Bash completion data.
2+
source `brew --prefix`/Cellar/git/2.4.6/etc/bash_completion.d/git-prompt.sh
3+
4+
export PS1='\n\[\e[32;1m\](\[\e[37;1m\]\u@\h\[\e[32;1m\])-(\[\e[37;1m\]\w\[\e[32;1m\])$(__git_ps1 "-\[\e[32;1m\](\[\e[37;1m\]%s\[\e[32;1m\])")\n(\[\[\e[37;1m\]\!\[\e[32;1m\])⚡️ \[\e[0m\]'
5+
6+
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
7+
8+
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

tmuxinator/listskybox.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# ~/.tmuxinator/listskybox.yml
2+
3+
name: listskybox
4+
root: ~/Documents/github/oet/listskybox
5+
6+
# Optional tmux socket
7+
# socket_name: foo
8+
9+
# Runs before everything. Use it to start daemons etc.
10+
# pre: sudo /etc/rc.d/mysqld start
11+
12+
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
13+
# pre_window: rbenv shell 2.0.0-p247
14+
15+
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
16+
# tmux_options: -f ~/.tmux.mac.conf
17+
18+
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
19+
# tmux_command: byobu
20+
21+
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
22+
# startup_window: logs
23+
24+
# Controls whether the tmux session should be attached to automatically. Defaults to true.
25+
# attach: false
26+
27+
# Runs after everything. Use it to attach to tmux with custom options etc.
28+
# post: tmux -CC attach -t listskybox
29+
30+
windows:
31+
- listskybox:
32+
layout: even-vertical
33+
panes:
34+
- redis-server /usr/local/etc/redis.conf
35+
- bin/sidekiq
36+
- bin/rails s

tmuxinator/test.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# ~/.tmuxinator/test.yml
2+
3+
name: test
4+
root: ~/
5+
6+
# Optional tmux socket
7+
# socket_name: foo
8+
9+
# Runs before everything. Use it to start daemons etc.
10+
# pre: sudo /etc/rc.d/mysqld start
11+
12+
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
13+
# pre_window: rbenv shell 2.0.0-p247
14+
15+
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
16+
# tmux_options: -f ~/.tmux.mac.conf
17+
18+
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
19+
# tmux_command: byobu
20+
21+
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
22+
# startup_window: logs
23+
24+
# Controls whether the tmux session should be attached to automatically. Defaults to true.
25+
# attach: false
26+
27+
# Runs after everything. Use it to attach to tmux with custom options etc.
28+
# post: tmux -CC attach -t test
29+
30+
windows:
31+
- editor:
32+
layout: main-vertical
33+
panes:
34+
- vim
35+
- guard
36+
- server: bundle exec rails s
37+
- logs: tail -f log/development.log

vim/spell/en.utf-8.add

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ProfitStars
2+
onboards
3+
dropdown

vim/spell/en.utf-8.add.spl

108 Bytes
Binary file not shown.

vimrc

+16
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Plugin 'tpope/vim-bundler'
1717
Plugin 'tpope/vim-rake'
1818
Plugin 'nanotech/jellybeans.vim' "Nice color scheme.
1919
Plugin 'jgdavey/vim-turbux' "Turbo Ruby tests with tmux.
20+
Plugin 'tpope/vim-surround' "Parenthese brackets quotes and more.
21+
Plugin 'tpope/vim-repeat' "Get '.' to work with surround
2022

2123
" All of your Plugins must be added before the following line
2224
call vundle#end() " required
@@ -33,6 +35,10 @@ filetype plugin indent on " required
3335
" see :h vundle for more details or wiki for FAQ
3436
" Put your non-Plugin stuff after this line
3537

38+
""
39+
"" Install repeat plugin for surround
40+
""
41+
silent! call repeat#set("\<Plug>vim-surround", v:count)
3642

3743
" All operations such as yy, D, and P work wieh the clipboard. No need to
3844
" prefix with"* or +
@@ -59,6 +65,16 @@ filetype on " Enable filetype detection
5965
filetype indent on " Enable filetype-specific indenting
6066
filetype plugin on " Enable filetype-specific plugins
6167

68+
""
69+
"" Soft line wrapping
70+
""
71+
72+
set wrap
73+
set linebreak
74+
set nolist " list disables linebreak
75+
set textwidth=0 " Don't put the hard line breaks in.
76+
set wrapmargin=0 " Don't put the hard line breaks in.
77+
6278
""
6379
"" Whitespace
6480
""

0 commit comments

Comments
 (0)