iterm conf + clipper

main
Steffen Rademacker 10 years ago
parent 77899d83e9
commit 8a37bf7178

@ -17,16 +17,16 @@ export PATH=/usr/local/bin:/usr/local/sbin:$PATH
# install some neccessary brew packages
brew install brew-cask
brew install clipper
brew install coreutils
brew install git
brew install macvim --with-cscope --with-lua --HEAD
brew install reattach-to-user-namespace
brew install rbenv
brew install ruby-build
brew install tmux
brew install the_silver_searcher
brew install wget
brew install zsh
brew install docker
brew install boot2docker
brew cask install dropbox
brew cask install forklift
@ -38,6 +38,9 @@ chsh -s /usr/local/bin/zsh
/usr/bin/env zsh
sudo mv /etc/zshenv /etc/zprofile
# clipper
ln -sfv /usr/local/opt/clipper/*.plist ~/Library/LaunchAgents
# install all submodules
git submodule init
git submodule update
@ -48,18 +51,17 @@ ln -s ~/dotfiles/editorconfig ~/.editorconfig
ln -s ~/dotfiles/gitconfig ~/.gitconfig
ln -s ~/dotfiles/gitignore ~/.gitignore
ln -s ~/dotfiles/eslintrc ~/.eslintrc
ln -s ~/dotfiles/jscsrc ~/.jscsrc
ln -s ~/dotfiles/slate.js ~/.slate.js
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
ln -s ~/dotfiles/vim ~/.vim
ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/zsh ~/.zsh
ln -s ~/dotfiles/zshrc ~/.zshrc
ln -s ~/dotfiles/zsh/pure/pure.zsh /usr/local/share/zsh/site-functions/prompt_pure_setup
# set xterm/screen terminals to enable italic fonts in terminal
tic ~/dotfiles/install/screen-256color-italic.terminfo
tic ~/dotfiles/install/xterm-256color-italic.terminfo
ln -s ~/dotfiles/zsh/pure/pure.zsh /usr/local/share/zsh/site-functions/prompt_pure_setup
tic ~/dotfiles/terminfo/screen-256color-italic.terminfo
tic ~/dotfiles/terminfo/xterm-256color-italic.terminfo
# set iterm terminal to xterm-256color-italic and enable italics!
# now restart your terminal/iterm2 and hope for the best

@ -5,6 +5,8 @@ brew tap homebrew/php
# install additional brew packages -- see _install.sh too
brew install curl
brew install docker
brew install boot2docker
brew install fasd
brew install ffmpeg
brew install ghostscript
@ -19,8 +21,6 @@ brew install php55-mcrypt
brew install php55-xdebug
brew install php55-intl
brew install composer
brew install rbenv
brew install ruby-build
brew install ssh-copy-id
brew install unrar
brew install youtube-dl

@ -420,12 +420,29 @@
<string></string>
<key>NSScrollAnimationEnabled</key>
<false/>
<key>NSTableView Columns KeyBingingTable</key>
<array>
<data>
BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
hAErATCG
</data>
<string>198</string>
<data>
BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
hAErATGG
</data>
<string>302</string>
</array>
<key>NSTableView Hidden Columns KeyBingingTable</key>
<array/>
<key>NSTableView Sort Ordering KeyBingingTable</key>
<array/>
<key>NSWindow Frame NSColorPanel</key>
<string>427 356 214 309 0 0 1920 1058 </string>
<key>NSWindow Frame Preferences</key>
<string>2468 328 924 485 1920 0 1920 1058 </string>
<string>548 409 924 485 0 0 1920 1200 </string>
<key>NSWindow Frame iTerm Window 0</key>
<string>2034 103 1130 656 1920 0 1920 1080 </string>
<string>0 12 1914 1166 0 0 1920 1200 </string>
<key>New Bookmarks</key>
<array>
<dict>
@ -1164,6 +1181,8 @@
<false/>
<key>OpenTmuxWindowsIn</key>
<integer>0</integer>
<key>PMPrintingExpandedStateForPrint2</key>
<false/>
<key>PassOnControlClick</key>
<false/>
<key>PasteFromClipboard</key>
@ -1202,7 +1221,7 @@
</dict>
</dict>
<key>PrefsCustomFolder</key>
<string>/Users/webgefrickel/dotfiles/install</string>
<string>/Users/webgefrickel/dotfiles/iterm</string>
<key>PromptOnQuit</key>
<false/>
<key>QuitWhenAllWindowsClosed</key>
@ -1220,7 +1239,7 @@
<key>SUHasLaunchedBefore</key>
<true/>
<key>SULastCheckTime</key>
<date>2014-10-28T10:51:36Z</date>
<date>2014-12-16T11:33:10Z</date>
<key>SavePasteHistory</key>
<false/>
<key>Show Toolbelt</key>
@ -1276,6 +1295,6 @@
<key>findRegex_iTerm</key>
<false/>
<key>iTerm Version</key>
<string>2.0.0.20141022</string>
<string>2.0.0.20141103</string>
</dict>
</plist>

@ -2,18 +2,15 @@
set -g default-terminal "screen-256color-italic"
# zsh
set-option -g default-shell $SHELL
set -g default-shell $SHELL
# bind default prefix to ctrl-a
set -g prefix C-a
unbind-key C-b
bind-key a send-prefix
# reparing copy & paste by default
set-option -g default-command "reattach-to-user-namespace -l zsh"
# more history
set-option -g history-limit 10000
set -g history-limit 10000
# Fix for sending keys to Vim
setw -g xterm-keys on
@ -24,20 +21,15 @@ set -sg escape-time 50
# use vim motions :-)
setw -g mode-keys vi
# reparing copy & paste
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Force a reload of te config file
unbind-key r
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded!"
# Copy & Paste with clipper -- see https://github.com/wincent/clipper
# starting copy & paste with Ctrl+a [
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "nc localhost 8377"
# Saner window splitting / new windows
bind-key \ split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
@ -53,19 +45,21 @@ bind-key -r C-k resize-pane -U
bind-key -r C-h resize-pane -L
bind-key -r C-l resize-pane -R
# Smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l"
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
# Mouse support
set -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
set -g mouse-resize-pane on
# counting panes starts at 1
set -g base-index 1
@ -76,20 +70,20 @@ set -g display-time 2000
# statusbar colors solarized dark
set-option -g status-bg black
set-option -g status-fg yellow
set-option -g status-attr default
set-window-option -g window-status-fg brightblue
set-window-option -g window-status-bg default
set-window-option -g window-status-current-fg brightred
set-window-option -g window-status-current-bg default
set-option -g pane-border-fg black
set-option -g pane-active-border-fg brightgreen
set-option -g message-bg black
set-option -g message-fg brightred
set-option -g display-panes-active-colour blue
set-option -g display-panes-colour brightred
set-window-option -g clock-mode-colour green
set -g status-bg black
set -g status-fg yellow
set -g status-attr default
set -g pane-border-fg black
set -g pane-active-border-fg brightgreen
set -g message-bg black
set -g message-fg brightred
set -g display-panes-active-colour blue
set -g display-panes-colour brightred
setw -g window-status-fg brightblue
setw -g window-status-bg default
setw -g window-status-current-fg brightred
setw -g window-status-current-bg default
setw -g clock-mode-colour green
# Custom status bar - with Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32

@ -339,6 +339,9 @@ nnoremap <leader>vs :source ~/.vimrc<cr>
" Opens an edit command with the path of the currently edited file filled in
nnoremap <leader>o :e <C-R>=expand("%:p:h") . "/" <CR>
" Yank to clipboard with clipper -- see https://github.com/wincent/clipper
nnoremap <leader>y :call system('nc localhost 8377', @0)<CR>
" reset search
nmap <leader><space> :noh<cr>

@ -37,6 +37,8 @@ alias -s html=vim
alias -s md=vim
alias -s txt=vim
# clipper -- https://github.com/wincent/clipper
alias clip="nc localhost 8377"
# gnu coreutils
alias ls="gls -al --color=auto"

@ -1,5 +1,5 @@
# Load the functions, aliases, function etc.
for file in ~/dotfiles/{exports,aliases,functions}; do
for file in ~/dotfiles/zsh/{exports,aliases,functions}; do
[ -r "$file" ] && source "$file"
done
unset file

Loading…
Cancel
Save