From fdb39192fc5fe50b29c377e3b5e6c44cc136ea02 Mon Sep 17 00:00:00 2001 From: Ali Moeeny Date: Mon, 18 Apr 2016 06:11:41 -0400 Subject: [PATCH] personalization --- runcoms/zpreztorc | 55 +++++++++++++++++++++++++++++++---------------- runcoms/zprofile | 9 ++++++-- runcoms/zshrc | 6 ++++++ 3 files changed, 49 insertions(+), 21 deletions(-) diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index e93ac6bf..c3169e2f 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -32,7 +32,15 @@ zstyle ':prezto:load' pmodule \ 'spectrum' \ 'utility' \ 'completion' \ - 'prompt' + 'prompt' \ + 'git' \ + 'osx' \ + 'homebrew' \ + 'history-substring-search' \ + 'ssh' \ + 'emacs' \ + 'tmux' + # # Autosuggestions @@ -47,9 +55,10 @@ zstyle ':prezto:load' pmodule \ # Set the key mapping style to 'emacs' or 'vi'. zstyle ':prezto:module:editor' key-bindings 'emacs' +zstyle ':prezto:module:editor' key-bindings 'vi' # Auto convert .... to ../.. -# zstyle ':prezto:module:editor' dot-expansion 'yes' +zstyle ':prezto:module:editor' dot-expansion 'yes' # # Git @@ -63,7 +72,7 @@ zstyle ':prezto:module:editor' key-bindings 'emacs' # # Set the command prefix on non-GNU systems. -# zstyle ':prezto:module:gnu-utility' prefix 'g' +zstyle ':prezto:module:gnu-utility' prefix 'g' # # History Substring Search @@ -116,7 +125,7 @@ zstyle ':prezto:module:prompt' theme 'sorin' # # Set the SSH identities to load into the agent. -# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github' +zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa_bitbucket' 'id_github' # # Syntax Highlighting @@ -124,32 +133,32 @@ zstyle ':prezto:module:prompt' theme 'sorin' # Set syntax highlighters. # By default, only the main highlighter is enabled. -# zstyle ':prezto:module:syntax-highlighting' highlighters \ -# 'main' \ -# 'brackets' \ -# 'pattern' \ -# 'line' \ -# 'cursor' \ -# 'root' -# +zstyle ':prezto:module:syntax-highlighting' highlighters \ + 'main' \ + 'brackets' \ + 'pattern' \ + 'line' \ + 'cursor' \ + 'root' + # Set syntax highlighting styles. -# zstyle ':prezto:module:syntax-highlighting' styles \ -# 'builtin' 'bg=blue' \ -# 'command' 'bg=blue' \ -# 'function' 'bg=blue' +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' +zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s' # Set the tab title format. -# zstyle ':prezto:module:terminal:tab-title' format '%m: %s' +zstyle ':prezto:module:terminal:tab-title' format '%m: %s' # # Tmux @@ -163,3 +172,11 @@ zstyle ':prezto:module:prompt' theme 'sorin' # Integrate with iTerm2. # zstyle ':prezto:module:tmux:iterm' integrate 'yes' + +export GOPATH=/Users/ali +#export GHSYNC_DIR='~/githubsync/' +export PATH=$PATH:/usr/local/opt/go/libexec/bin +export RBENV_ROOT=/usr/local/var/rbenv + + + diff --git a/runcoms/zprofile b/runcoms/zprofile index d87cb3b0..09a9cc5a 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -17,8 +17,8 @@ fi # Editors # -export EDITOR='nano' -export VISUAL='nano' +export EDITOR='vim' +export VISUAL='vim' export PAGER='less' # @@ -44,6 +44,7 @@ typeset -gU cdpath fpath mailpath path # Set the list of directories that Zsh searches for programs. path=( /usr/local/{bin,sbin} + /Users/ali/bin $path ) @@ -71,4 +72,8 @@ if [[ ! -d "$TMPDIR" ]]; then mkdir -p -m 700 "$TMPDIR" fi +alias todo=/usr/local/bin/todo.sh +alias t=/usr/local/bin/todo.sh + + TMPPREFIX="${TMPDIR%/}/zsh" diff --git a/runcoms/zshrc b/runcoms/zshrc index 039b882d..71c04712 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -11,3 +11,9 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then fi # Customize to your needs... + +[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh + + +source ~/.fzf.zsh +