new install fixes

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

@ -1,5 +1,36 @@
#!/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/editorconf ~/.editorconf
ln -s ~/dotfiles/gitconfig ~/.gitconfig
@ -13,9 +44,6 @@ ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/zshrc ~/.zshrc
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`
/usr/bin/env/ zsh
source ~/.zshrc

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

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

33
vimrc

@ -180,21 +180,12 @@ set timeout timeoutlen=800 ttimeoutlen=100
" 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
let mapleader = ","
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
" Swap v and CTRL-V, because Block mode is more useful
nnoremap v <C-V>
@ -261,14 +252,6 @@ nmap <C-down> ]e
vmap <C-up> [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
nmap <C-left> <<
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
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
" ======================================================================
@ -333,6 +318,15 @@ nnoremap <silent> <leader>gp :Git push<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
nnoremap <F3> :UndotreeToggle<cr>
@ -426,6 +420,7 @@ au BufNewFile,BufRead *.{json,js,css,scss,html} set iskeyword-=_
" Syntaxes for other files
au BufNewFile,BufRead Phakefile set ft=php
au BufNewFile,BufRead *.twig set ft=html.twig
" Remember last location/cursor in file
if has("autocmd")

Loading…
Cancel
Save