new install fixes

main
Steffen Becker 11 years ago
parent 7f09aa7745
commit 0a527dd0c2

@ -1,5 +1,36 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# install xcode and other software from the app store
# everything neccessary first - command line tools
xcode-select --install
# install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew doctor
# tap the casks
brew tap phinze/homebrew-cask
# brew paths
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
# install some neccessary brew packages
brew install tmux
brew install zsh
brew install git
brew install brew-cask
brew install coreutils
brew cask install forklift
brew cask install iterm2
brew cask install dropbox
# install all submodules
git submodule init
git submodule update
# link the dotfiles
ln -s ~/dotfiles/agignore ~/.agignore ln -s ~/dotfiles/agignore ~/.agignore
ln -s ~/dotfiles/editorconf ~/.editorconf ln -s ~/dotfiles/editorconf ~/.editorconf
ln -s ~/dotfiles/gitconfig ~/.gitconfig ln -s ~/dotfiles/gitconfig ~/.gitconfig
@ -13,9 +44,6 @@ ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/zshrc ~/.zshrc ln -s ~/dotfiles/zshrc ~/.zshrc
ln -s ~/dotfiles/zsh/pure/pure.zsh /usr/local/share/zsh/site-functions/prompt_pure_setup ln -s ~/dotfiles/zsh/pure/pure.zsh /usr/local/share/zsh/site-functions/prompt_pure_setup
git submoulde init
git submodule update
chsh -s `which zsh` chsh -s `which zsh`
/usr/bin/env/ zsh /usr/bin/env/ zsh
source ~/.zshrc source ~/.zshrc

@ -6,56 +6,47 @@ xcode-select --install
brew tap homebrew/dupes brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php brew tap josegonzalez/homebrew-php
brew tap phinze/homebrew-cask
# install brew packages # install brew packages
brew install ack
brew install brew-cask
brew install composer
brew install coreutils
brew install curl brew install curl
brew install ghostscript brew install ghostscript
brew install git
brew install git-flow brew install git-flow
brew install macvim brew install macvim
brew install markdown brew install markdown
brew install mcrypt brew install mcrypt
brew install mysql brew install mysql
brew install node brew install node
brew install phake brew install reattach-to-user-namespace
brew install php55 brew install php55
brew install php55-mcrypt brew install php55-mcrypt
brew install php55-xdebug brew install php55-xdebug
brew install composer
brew install phake
brew install rbenv brew install rbenv
brew install reattach-to-user-namespace
brew install ruby-build brew install ruby-build
brew install ssh-copy-id
brew install subversion brew install subversion
brew install the_silver_searcher brew install the_silver_searcher
brew install tmux
brew install unrar brew install unrar
brew install wget brew install wget
brew install zsh
# brew cask and install software # brew cask and install software
brew cask install adium brew cask install adium
brew cask install alfred brew cask install alfred
brew cask install amadeus-pro brew cask install amadeus-pro
brew cask install bill
brew cask install carbon-copy-cloner brew cask install carbon-copy-cloner
brew cask install doxie brew cask install doxie
brew cask install dropbox brew cask install dropbox
brew cask install firefox brew cask install firefox
brew cask install f-lux brew cask install f-lux
brew cask install forklift
brew cask install ghostlab brew cask install ghostlab
brew cask install google-chrome brew cask install google-chrome
brew cask install imagealpha brew cask install imagealpha
brew cask install imageoptim brew cask install imageoptim
brew cask install istat-menus brew cask install istat-menus
brew cask install iterm2
brew cask install key-remap4-mac-book brew cask install key-remap4-mac-book
brew cask install libre-effice brew cask install libre-office
brew cask install miro-video-converter brew cask install miro-video-converter
brew cask install opera brew cask install opera
brew cask install pc-keyboardhack brew cask install pc-keyboardhack
@ -63,13 +54,13 @@ brew cask install sequel-pro
brew cask install simple-comic brew cask install simple-comic
brew cask install skype brew cask install skype
brew cask install slate brew cask install slate
brew cask install sourcetree
brew cask install things brew cask install things
brew cask install timings
brew cask install transmission brew cask install transmission
brew cask install true-crypt brew cask install truecrypt
brew cask install vagrant brew cask install vagrant
brew cask install virtualbox brew cask install virtualbox
brew cask install vlc brew cask install vlc
brew cask install xld brew cask install xld
# the rest -> appstore :-) # the rest -> appstore or adobe or others :-)

@ -9,18 +9,22 @@
====================================================================== */ ====================================================================== */
slate.configAll({ slate.configAll({
"defaultToCurrentScreen": true, 'checkDefaultsOnLoad': true,
"windowHintsShowIcons": true, 'defaultToCurrentScreen': true,
"windowHintsIgnoreHiddenWindows": false, 'focusCheckWidthMax': 3000,
"windowHintsSpread": true, 'modalEscapeKey': 'esc',
"windowHintsWidth": 50, 'nudgePercentOf': 'screenSize',
"windowHintsHeight": 50, 'resizePercentOf': 'screenSize',
"nudgePercentOf": "screenSize", 'secondsBetweenRepeat': 0.1,
"resizePercentOf": "screenSize", 'windowHintsDuration': 5,
"secondsBetweenRepeat": 0.1, 'windowHintsFontColor': '0;255;0;1.0',
"checkDefaultsOnLoad": true, 'windowHintsFontName': 'Menlo',
"focusCheckWidthMax": 3000, 'windowHintsFontSize': 60,
"modalEscapeKey": "esc" 'windowHintsHeight': 72,
'windowHintsIgnoreHiddenWindows': false,
'windowHintsShowIcons': true,
'windowHintsSpread': true,
'windowHintsWidth': 72
}); });
@ -28,135 +32,128 @@ slate.configAll({
====================================================================== */ ====================================================================== */
// show the overlay hints for applications // show the overlay hints for applications
var hint = slate.operation("hint", { "characters": "jkl;asdfqwertyuiop[]zxcvbnm," }); var hint = slate.operation('hint', {
'characters': 'jkl;asdfqwertyuiop[]zxcvbnm,'
});
// custom resize grids for all monitors 6x4 // custom resize grids for all monitors 6x4
var grid = slate.operation("grid", { var grid = slate.operation('grid', {
"padding": 10, 'padding': 10,
"grids": { 'grids': {
"0": { '0': {
"width": 12, 'width': 12,
"height": 8 'height': 8
}, },
"1": { '1': {
"width": 12, 'width': 12,
"height": 8 'height': 8
}, },
"2": { '2': {
"width": 12, 'width': 12,
"height": 8 'height': 8
} }
} }
}); });
// ultrafast application-switching // ultrafast application-switching
var iterm = slate.operation("focus", { "app": "iTerm" }); var iterm = slate.operation('focus', { 'app': 'iTerm' });
var chrome = slate.operation("focus", { "app": "Google Chrome" }); var chrome = slate.operation('focus', { 'app': 'Google Chrome' });
var mail = slate.operation("focus", { "app": "Mail" }); var mail = slate.operation('focus', { 'app': 'Mail' });
var fork = slate.operation("focus", { "app": "ForkLift" }); var fork = slate.operation('focus', { 'app': 'ForkLift' });
var ical = slate.operation("focus", { "app": "iCal" }); var ical = slate.operation('focus', { 'app': 'iCal' });
var adium = slate.operation("focus", { "app": "Adium" }); var fox = slate.operation('focus', { 'app': 'Firefox' });
var time = slate.operation("focus", { "app": "TimeLog" });
var dash = slate.operation("focus", { "app": "Dash" });
var fox = slate.operation("focus", { "app": "Firefox" }); var fullscreen = slate.operation('move', {
'x': 'screenOriginX',
'y': 'screenOriginY',
var fullscreen = slate.operation("move", { 'width': 'screenSizeX',
"x": "screenOriginX", 'height': 'screenSizeY'
"y": "screenOriginY",
"width": "screenSizeX",
"height": "screenSizeY"
}); });
var lefthalf = slate.operation("move", { var lefthalf = slate.operation('move', {
"x": "screenOriginX", 'x': 'screenOriginX',
"y": "screenOriginY", 'y': 'screenOriginY',
"width": "screenSizeX/2", 'width': 'screenSizeX/2',
"height": "screenSizeY" 'height': 'screenSizeY'
}); });
var righthalf = slate.operation("move", { var righthalf = slate.operation('move', {
"x": "screenOriginX+screenSizeX/2", 'x': 'screenOriginX+screenSizeX/2',
"y": "screenOriginY", 'y': 'screenOriginY',
"width": "screenSizeX/2", 'width': 'screenSizeX/2',
"height": "screenSizeY" 'height': 'screenSizeY'
}); });
var tophalf = slate.operation("move", { var tophalf = slate.operation('move', {
"x": "screenOriginX", 'x': 'screenOriginX',
"y": "screenOriginY", 'y': 'screenOriginY',
"width": "screenSizeX", 'width': 'screenSizeX',
"height": "screenSizeY/2" 'height': 'screenSizeY/2'
}); });
var bottomhalf = slate.operation("move", { var bottomhalf = slate.operation('move', {
"x": "screenOriginX", 'x': 'screenOriginX',
"y": "screenOriginY+screenSizeY/2", 'y': 'screenOriginY+screenSizeY/2',
"width": "screenSizeX", 'width': 'screenSizeX',
"height": "screenSizeY/2" 'height': 'screenSizeY/2'
}); });
var mobile = slate.operation("move", { var mobile = slate.operation('move', {
"x": "screenOriginX", 'x': 'screenOriginX',
"y": "screenOriginY", 'y': 'screenOriginY',
"width": "480", 'width': '480',
"height": "screenSizeY" 'height': 'screenSizeY'
}); });
var tablet = slate.operation("move", { var tablet = slate.operation('move', {
"x": "screenOriginX", 'x': 'screenOriginX',
"y": "screenOriginY", 'y': 'screenOriginY',
"width": "1024", 'width': '1024',
"height": "768" 'height': '768'
}); });
var desktop = slate.operation("move", { var desktop = slate.operation('move', {
"x": "screenOriginX", 'x': 'screenOriginX',
"y": "screenOriginY", 'y': 'screenOriginY',
"width": "1280", 'width': '1280',
"height": "800" 'height': '800'
}); });
var fullhd = slate.operation("move", { var fullhd = slate.operation('move', {
"x": "screenOriginX", 'x': 'screenOriginX',
"y": "screenOriginY", 'y': 'screenOriginY',
"width": "1920", 'width': '1920',
"height": "1080" 'height': '1080'
}); });
/* Key bindings /* Key bindings
====================================================================== */ ====================================================================== */
var hyper = ":shift,ctrl,alt,cmd"; var hyper = ':shift,ctrl,alt,cmd';
var hyperModal = hyper + ",s:toggle"; var hyperModal = hyper + ',s:toggle';
// f = fast switching and a nice position in the home row slate.bind('tab:cmd', hint, false);
slate.bind("]" + hyper, hint, false); slate.bind('tab:shift,cmd', grid, false);
// g = grid view
slate.bind("[" + hyper, grid, false);
// most important apps on easy accesible keys // most important apps on easy accesible keys
slate.bind("t" + hyper, iterm, false); slate.bind('q' + hyper, iterm, false);
slate.bind("c" + hyper, chrome, false); slate.bind('w' + hyper, chrome, false);
slate.bind("m" + hyper, mail, false); slate.bind('e' + hyper, mail, false);
slate.bind("f" + hyper, fork, false); slate.bind('r' + hyper, fork, false);
slate.bind("i" + hyper, ical, false); slate.bind('t' + hyper, ical, false);
slate.bind("a" + hyper, adium, false);
slate.bind("l" + hyper, time, false);
slate.bind("d" + hyper, dash, false);
slate.bind("x" + hyper, fox, false);
// movements in modal mode with m // movements in modal mode with m
slate.bind("h" + hyperModal, lefthalf, false); slate.bind('h' + hyperModal, lefthalf, false);
slate.bind("l" + hyperModal, righthalf, false); slate.bind('l' + hyperModal, righthalf, false);
slate.bind("k" + hyperModal, tophalf, false); slate.bind('k' + hyperModal, tophalf, false);
slate.bind("j" + hyperModal, bottomhalf, false); slate.bind('j' + hyperModal, bottomhalf, false);
slate.bind("1" + hyperModal, mobile, false); slate.bind('1' + hyperModal, mobile, false);
slate.bind("2" + hyperModal, tablet, false); slate.bind('2' + hyperModal, tablet, false);
slate.bind("3" + hyperModal, desktop, false); slate.bind('3' + hyperModal, desktop, false);
slate.bind("4" + hyperModal, fullhd, false); slate.bind('4' + hyperModal, fullhd, false);
slate.bind("space" + hyperModal, fullscreen, false); slate.bind('space' + hyperModal, fullscreen, false);

33
vimrc

@ -180,21 +180,12 @@ set timeout timeoutlen=800 ttimeoutlen=100
" Custom key mappings and shortcuts " Custom key mappings and shortcuts
" ====================================================================== " ======================================================================
" Fix some common typos
command! -bang E e<bang>
command! -bang Q q<bang>
command! -bang W w<bang>
command! -bang QA qa<bang>
command! -bang Qa qa<bang>
command! -bang Wa wa<bang>
command! -bang WA wa<bang>
command! -bang Wq wq<bang>
command! -bang WQ wq<bang>
" set the leader to comma , and ; == : -- faster commands " set the leader to comma , and ; == : -- faster commands
let mapleader = "," let mapleader = ","
nnoremap ; : nnoremap ; :
nnoremap : ; nnoremap : ;
vnoremap ; :
vnoremap : ;
" Swap v and CTRL-V, because Block mode is more useful " Swap v and CTRL-V, because Block mode is more useful
nnoremap v <C-V> nnoremap v <C-V>
@ -261,14 +252,6 @@ nmap <C-down> ]e
vmap <C-up> [egv vmap <C-up> [egv
vmap <C-down> ]egv vmap <C-down> ]egv
" use visual line/block bubbling with dragvisuals
vmap <expr> <C-h> DVB_Drag('left')
vmap <expr> <C-l> DVB_Drag('right')
vmap <expr> <C-j> DVB_Drag('down')
vmap <expr> <C-k> DVB_Drag('up')
vmap <expr> <C-d> DVB_Duplicate()
let g:DVB_TrimWS = 1
" in/outdent Keymappings " in/outdent Keymappings
nmap <C-left> << nmap <C-left> <<
nmap <C-right> >> nmap <C-right> >>
@ -306,6 +289,8 @@ lnoremap <F5> :checktime<CR>
" when over a class in html hit fc to find that class in css/scss/js " when over a class in html hit fc to find that class in css/scss/js
nnoremap <leader>c :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnext<CR> nnoremap <leader>c :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnext<CR>
" short command to strip trainling whitepsace
nnoremap <leader>s ms:%s/\s\+$//e<cr>:noh<cr>`s
" Plugins " Plugins
" ====================================================================== " ======================================================================
@ -333,6 +318,15 @@ nnoremap <silent> <leader>gp :Git push<CR><C-w>20+
nnoremap <silent> <leader>gw :Gwrite<CR><C-w>20+ nnoremap <silent> <leader>gw :Gwrite<CR><C-w>20+
" use visual line/block bubbling with dragvisuals
vmap <expr> <C-h> DVB_Drag('left')
vmap <expr> <C-l> DVB_Drag('right')
vmap <expr> <C-j> DVB_Drag('down')
vmap <expr> <C-k> DVB_Drag('up')
vmap <expr> <C-d> DVB_Duplicate()
let g:DVB_TrimWS = 1
" Undotree " Undotree
nnoremap <F3> :UndotreeToggle<cr> nnoremap <F3> :UndotreeToggle<cr>
@ -426,6 +420,7 @@ au BufNewFile,BufRead *.{json,js,css,scss,html} set iskeyword-=_
" Syntaxes for other files " Syntaxes for other files
au BufNewFile,BufRead Phakefile set ft=php au BufNewFile,BufRead Phakefile set ft=php
au BufNewFile,BufRead *.twig set ft=html.twig
" Remember last location/cursor in file " Remember last location/cursor in file
if has("autocmd") if has("autocmd")

Loading…
Cancel
Save