Permalink
Browse files

Change while setting up a new machine.

  • Loading branch information...
forest committed Oct 10, 2014
1 parent 8177840 commit ca24be27882f8b631d835a33c0d9db2337fb8cf3
Showing with 239 additions and 218 deletions.
  1. +1 −8 zlogin
  2. +45 −18 zpreztorc
  3. +69 −0 zprofile
  4. +23 −23 zsh.after/aliases.zsh
  5. +3 −3 zsh.after/base.zsh
  6. +5 −5 zsh.after/custom.zsh
  7. +90 −35 zsh.after/prompt.zsh
  8. +0 −34 zsh.before/base.zsh
  9. +3 −92 zshenv
View
9 zlogin
@@ -9,16 +9,9 @@
{
# Compile the completion dump to increase startup speed.
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
zcompile "$zcompdump"
fi
# Set environment variables for launchd processes.
if [[ "$OSTYPE" == darwin* ]]; then
for env_var in PATH MANPATH; do
launchctl setenv "$env_var" "${(P)env_var}"
done
fi
} &!
# Print a random, hopefully interesting, adage.
View
@@ -10,7 +10,7 @@
#
# Set case-sensitivity for completion, history lookup, etc.
zstyle ':prezto:*:*' case-sensitive 'no'
# zstyle ':prezto:*:*' case-sensitive 'yes'
# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes'
@@ -64,6 +64,19 @@ zstyle ':prezto:module:editor' keymap 'vi'
# Set the command prefix on non-GNU systems.
# zstyle ':prezto:module:gnu-utility' prefix 'g'
#
# History Substring Search
#
# Set the query found color.
# zstyle ':prezto:module:history-substring-search:color' found ''
# Set the query not found color.
# zstyle ':prezto:module:history-substring-search:color' not-found ''
# Set the search globbing flags.
# zstyle ':prezto:module:history-substring-search' globbing-flags ''
#
# Pacman
#
@@ -79,56 +92,70 @@ zstyle ':prezto:module:editor' keymap 'vi'
# Setting it to 'random' loads a random theme.
# Auto set to 'off' on dumb terminals.
zstyle ':prezto:module:prompt' theme 'steeef'
#zstyle ':prezto:module:prompt' theme 'pure'
#
# Screen
# Ruby
#
# Auto start a session when Zsh is launched.
# zstyle ':prezto:module:screen' auto-start 'yes'
# Auto switch the Ruby version on directory change.
# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
#
# GPG-Agent
# Screen
#
# Enable SSH-Agent protocol emulation.
# zstyle ':prezto:module:gpg-agent' ssh-support 'yes'
# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:screen:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:screen:auto-start' remote 'yes'
#
# SSH-Agent
# SSH
#
# Enable ssh-agent forwarding.
# zstyle ':prezto:module:ssh-agent' forwarding 'yes'
# Set ssh-agent identities to load.
# zstyle ':prezto:module:ssh-agent' identities 'id_rsa' 'id_rsa2' 'id_github'
zstyle ':prezto:module:ssh-agent' identities 'id_rsa'
# Set the SSH identities to load into the agent.
# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
#
# Syntax Highlighting
#
# Set syntax highlighters.
# By default main, brackets, and cursor are enabled.
# By default, only the main highlighter is enabled.
# zstyle ':prezto:module:syntax-highlighting' highlighters \
# 'main' \
# 'brackets' \
# 'pattern' \
# 'cursor' \
# 'root'
#
# Set syntax highlighting styles.
# zstyle ':prezto:module:syntax-highlighting' styles \
# 'builtin' 'bg=blue' \
# 'command' 'bg=blue' \
# 'function' 'bg=blue'
#
# Terminal
#
# Auto set the tab and window titles.
zstyle ':prezto:module:terminal' auto-title 'yes'
# zstyle ':prezto:module:terminal' auto-title 'yes'
# Set the window title format.
# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
# Set the tab title format.
# zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
#
# Tmux
#
# Auto start a session when Zsh is launched.
# zstyle ':prezto:module:tmux' auto-start 'yes'
# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:tmux:auto-start' local 'yes'
# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:tmux:auto-start' remote 'yes'
View
@@ -5,3 +5,72 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# Browser
#
if [[ "$OSTYPE" == darwin* ]]; then
export BROWSER='open'
fi
#
# Editors
#
export EDITOR='nano'
export VISUAL='nano'
export PAGER='less'
#
# Language
#
if [[ -z "$LANG" ]]; then
export LANG='en_US.UTF-8'
fi
#
# Paths
#
# Ensure path arrays do not contain duplicates.
typeset -gU cdpath fpath mailpath path
# Set the the list of directories that cd searches.
# cdpath=(
# $cdpath
# )
# Set the list of directories that Zsh searches for programs.
path=(
/usr/local/{bin,sbin}
$path
)
#
# Less
#
# Set the default Less options.
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
# Remove -X and -F (exit if the content fits on one screen) to enable it.
export LESS='-F -g -i -M -R -S -w -X -z-4'
# Set the Less input preprocessor.
if (( $+commands[lesspipe.sh] )); then
export LESSOPEN='| /usr/bin/env lesspipe.sh %s 2>&-'
fi
#
# Temporary Files
#
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$USER"
mkdir -p -m 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi
View
@@ -62,13 +62,13 @@ function bers() { bundle exec rake spec SPEC="$1" }
function ber() { bundle exec rspec $1 }
# zeus
alias ztart='zeus start'
unalias zs # set by zeus plugin
function zs() { zeus rspec $1 }
function zg() { zeus generate $1 }
function zc() { zeus console $1 }
function zr() { zeus rake $1 }
function zsr() { zeus server $1 }
# alias ztart='zeus start'
# unalias zs # set by zeus plugin
# function zs() { zeus rspec $1 }
# function zg() { zeus generate $1 }
# function zc() { zeus console $1 }
# function zr() { zeus rake $1 }
# function zsr() { zeus server $1 }
# ruby
alias rit='ri -T'
@@ -103,8 +103,8 @@ alias %=' '
#alias e='mate . &'
# sublime edit
alias e='subl -n .'
alias subl='subl3'
# alias e='subl -n .'
# alias subl='subl3'
# mvim
alias mvim='nocorrect mvim'
@@ -124,18 +124,18 @@ function csm {
}
# RVM
alias gsu='rvm gemset use $1'
# alias gsu='rvm gemset use $1'
# nginx
alias ns='sh ~/.dotfiles/bin/nginx.sh'
# alias ns='sh ~/.dotfiles/bin/nginx.sh'
# passenger
alias pss='passenger start'
alias pssp='RAILS_ENV=production passenger start'
# alias pss='passenger start'
# alias pssp='RAILS_ENV=production passenger start'
# postgress
alias pgst='pg_ctl -D $BOXEN_DATA_DIR/postgresql -l $BOXEN_LOG_DIR/postgresql/server.log start'
alias pgsp='pg_ctl -D $BOXEN_DATA_DIR/postgresql stop -s -m fast'
# alias pgst='pg_ctl -D $BOXEN_DATA_DIR/postgresql -l $BOXEN_LOG_DIR/postgresql/server.log start'
# alias pgsp='pg_ctl -D $BOXEN_DATA_DIR/postgresql stop -s -m fast'
# mysql
alias mysqlst='mysql.server start'
@@ -148,19 +148,19 @@ alias fsr='foreman start redis'
alias fsn='foreman start neo4j'
# powify
alias pws='powify start'
alias pwr='powify restart'
alias pwb='powify browse'
alias pwl='powify logs'
# alias pws='powify start'
# alias pwr='powify restart'
# alias pwb='powify browse'
# alias pwl='powify logs'
# fasd
alias j='z'
# office machines
alias ldbmaster='ssh dbmaster1.lessonplanet.com'
alias ldbslave='ssh dbslave1.lessonplanet.com'
alias llb1='ssh lb1.lessonplanet.com'
alias lredis='ssh redis1.lessonplanet.com'
# alias ldbmaster='ssh dbmaster1.lessonplanet.com'
# alias ldbslave='ssh dbslave1.lessonplanet.com'
# alias llb1='ssh lb1.lessonplanet.com'
# alias lredis='ssh redis1.lessonplanet.com'
# sshuttle
alias tunnel='sshuttle --dns -vvr forest@ci-builder1.lessonplanet.com:2222 0/0'
View
@@ -26,6 +26,6 @@ export MSGMERGE_PATH="/usr/local/Cellar/gettext/0.18.1.1/bin/msgmerge"
# @see http://vim.1045645.n5.nabble.com/MacVim-and-PATH-tt3388705.html#a3392363
# Ensure MacVim has same shell as Terminal
if [[ -a /etc/zshenv ]]; then
sudo mv /etc/zshenv /etc/zprofile
fi
# if [[ -a /etc/zshenv ]]; then
# sudo mv /etc/zshenv /etc/zprofile
# fi
View
@@ -1,20 +1,20 @@
export VISUAL="/opt/boxen/homebrew/bin/vi"
export EDITOR="/opt/boxen/homebrew/bin/vi"
# export VISUAL="/opt/boxen/homebrew/bin/vi"
# export EDITOR="/opt/boxen/homebrew/bin/vi"
# Faster ruby
# https://gist.github.com/burke/1688857
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_FREE_MIN=500000
export RUBY_HEAP_MIN_SLOTS=40000
export RUBYLIB=/Applications/RubyMine.app/rb/testing/patch/common:/Applications/RubyMine.app/rb/testing/patch/bdd
# export RUBYLIB=/Applications/RubyMine.app/rb/testing/patch/common:/Applications/RubyMine.app/rb/testing/patch/bdd
# load direnv
if which direnv > /dev/null; then eval "$(direnv hook zsh)"; fi
# boxen
export BOXEN_SRC_DIR=$HOME/code
[ -f /opt/boxen/env.sh ] && source /opt/boxen/env.sh
# export BOXEN_SRC_DIR=$HOME/code
# [ -f /opt/boxen/env.sh ] && source /opt/boxen/env.sh
# To enable shims and autocompletion add to your profile:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
Oops, something went wrong.

0 comments on commit ca24be2

Please sign in to comment.