From 113f6efa4fde318414d50794270218a142404376 Mon Sep 17 00:00:00 2001 From: Adam Lamers Date: Thu, 20 Oct 2016 12:43:15 -0500 Subject: [PATCH] set up dotbot and remove youcompleteme --- .bashrc_debian | 222 ------------------ .gitmodules | 3 + dotbot | 1 + install | 14 ++ install.conf.yaml | 16 ++ .../bundle/Vundle.vim/CONTRIBUTING.md | 0 .../bundle/Vundle.vim/LICENSE-MIT.txt | 0 {.vim => vim}/bundle/Vundle.vim/README.md | 0 .../bundle/Vundle.vim/autoload/vundle.vim | 0 .../Vundle.vim/autoload/vundle/config.vim | 0 .../Vundle.vim/autoload/vundle/installer.vim | 0 .../Vundle.vim/autoload/vundle/scripts.vim | 0 {.vim => vim}/bundle/Vundle.vim/changelog.md | 0 {.vim => vim}/bundle/Vundle.vim/doc/tags | 0 .../bundle/Vundle.vim/doc/vundle.txt | 0 .../bundle/Vundle.vim/test/files/test.erl | 0 .../bundle/Vundle.vim/test/minirc.vim | 0 {.vim => vim}/bundle/Vundle.vim/test/vimrc | 0 {.vim => vim}/colors/monokai.vim | 0 .vimrc => vimrc | 40 +++- .vimrc_vundle => vimrc_vundle | 61 ++++- zpreztorc | 165 +++++++++++++ zshrc | 21 ++ 23 files changed, 308 insertions(+), 235 deletions(-) delete mode 100644 .bashrc_debian create mode 100644 .gitmodules create mode 160000 dotbot create mode 100755 install create mode 100644 install.conf.yaml rename {.vim => vim}/bundle/Vundle.vim/CONTRIBUTING.md (100%) rename {.vim => vim}/bundle/Vundle.vim/LICENSE-MIT.txt (100%) rename {.vim => vim}/bundle/Vundle.vim/README.md (100%) rename {.vim => vim}/bundle/Vundle.vim/autoload/vundle.vim (100%) rename {.vim => vim}/bundle/Vundle.vim/autoload/vundle/config.vim (100%) rename {.vim => vim}/bundle/Vundle.vim/autoload/vundle/installer.vim (100%) rename {.vim => vim}/bundle/Vundle.vim/autoload/vundle/scripts.vim (100%) rename {.vim => vim}/bundle/Vundle.vim/changelog.md (100%) rename {.vim => vim}/bundle/Vundle.vim/doc/tags (100%) rename {.vim => vim}/bundle/Vundle.vim/doc/vundle.txt (100%) rename {.vim => vim}/bundle/Vundle.vim/test/files/test.erl (100%) rename {.vim => vim}/bundle/Vundle.vim/test/minirc.vim (100%) rename {.vim => vim}/bundle/Vundle.vim/test/vimrc (100%) rename {.vim => vim}/colors/monokai.vim (100%) rename .vimrc => vimrc (61%) rename .vimrc_vundle => vimrc_vundle (59%) create mode 100644 zpreztorc create mode 100644 zshrc diff --git a/.bashrc_debian b/.bashrc_debian deleted file mode 100644 index 1a19969..0000000 --- a/.bashrc_debian +++ /dev/null @@ -1,222 +0,0 @@ -# ~/.bashrc: executed by bash(1) for non-login shells. -# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) -# for examples - -# If not running interactively, don't do anything -case $- in - *i*) ;; - *) return;; -esac - -# don't put duplicate lines or lines starting with space in the history. -# See bash(1) for more options -HISTCONTROL=ignoreboth - -# append to the history file, don't overwrite it -shopt -s histappend - -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=1000 -HISTFILESIZE=2000 - -# check the window size after each command and, if necessary, -# update the values of LINES and COLUMNS. -shopt -s checkwinsize - -# If set, the pattern "**" used in a pathname expansion context will -# match all files and zero or more directories and subdirectories. -#shopt -s globstar - -# make less more friendly for non-text input files, see lesspipe(1) -#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" - -# set variable identifying the chroot you work in (used in the prompt below) -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) -fi - -# set a fancy prompt (non-color, unless we know we "want" color) -case "$TERM" in - xterm-256color) color_prompt=yes;; - xterm-color) color_prompt=yes;; - screen) color_prompt=yes;; -esac - -# uncomment for a colored prompt, if the terminal has the capability; turned -# off by default to not distract the user: the focus in a terminal window -# should be on the output of commands, not on the prompt -#force_color_prompt=yes - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi -unset color_prompt force_color_prompt - -# If this is an xterm set the title to user@host:dir -case "$TERM" in -xterm*|rxvt*) - PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" - ;; -*) - ;; -esac - -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - alias dir='dir --color=auto' - alias vdir='vdir --color=auto' - - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' -fi - -# colored GCC warnings and errors -export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' - -# some more ls aliases -alias ll='ls -l' -alias la='ls -A' -alias l='ls -CF' - -# Alias definitions. -# You may want to put all your additions into a separate file like -# ~/.bash_aliases, instead of adding them here directly. -# See /usr/share/doc/bash-doc/examples in the bash-doc package. - -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi - -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi - -# Customize BASH PS1 prompt to show current GIT repository and branch. -# by Mike Stewart - http://MediaDoneRight.com - -# SETUP CONSTANTS -# Bunch-o-predefined colors. Makes reading code easier than escape sequences. -# I don't remember where I found this. o_O - -# Reset -Color_Off="\[\033[0m\]" # Text Reset - -# Regular Colors -Black="\[\033[0;30m\]" # Black -Red="\[\033[0;31m\]" # Red -Green="\[\033[0;32m\]" # Green -Yellow="\[\033[0;33m\]" # Yellow -Blue="\[\033[0;34m\]" # Blue -Purple="\[\033[0;35m\]" # Purple -Cyan="\[\033[0;36m\]" # Cyan -White="\[\033[0;37m\]" # White - -# Bold -BBlack="\[\033[1;30m\]" # Black -BRed="\[\033[1;31m\]" # Red -BGreen="\[\033[1;32m\]" # Green -BYellow="\[\033[1;33m\]" # Yellow -BBlue="\[\033[1;34m\]" # Blue -BPurple="\[\033[1;35m\]" # Purple -BCyan="\[\033[1;36m\]" # Cyan -BWhite="\[\033[1;37m\]" # White - -# Underline -UBlack="\[\033[4;30m\]" # Black -URed="\[\033[4;31m\]" # Red -UGreen="\[\033[4;32m\]" # Green -UYellow="\[\033[4;33m\]" # Yellow -UBlue="\[\033[4;34m\]" # Blue -UPurple="\[\033[4;35m\]" # Purple -UCyan="\[\033[4;36m\]" # Cyan -UWhite="\[\033[4;37m\]" # White - -# Background -On_Black="\[\033[40m\]" # Black -On_Red="\[\033[41m\]" # Red -On_Green="\[\033[42m\]" # Green -On_Yellow="\[\033[43m\]" # Yellow -On_Blue="\[\033[44m\]" # Blue -On_Purple="\[\033[45m\]" # Purple -On_Cyan="\[\033[46m\]" # Cyan -On_White="\[\033[47m\]" # White - -# High Intensty -IBlack="\[\033[0;90m\]" # Black -IRed="\[\033[0;91m\]" # Red -IGreen="\[\033[0;92m\]" # Green -IYellow="\[\033[0;93m\]" # Yellow -IBlue="\[\033[0;94m\]" # Blue -IPurple="\[\033[0;95m\]" # Purple -ICyan="\[\033[0;96m\]" # Cyan -IWhite="\[\033[0;97m\]" # White - -# Bold High Intensty -BIBlack="\[\033[1;90m\]" # Black -BIRed="\[\033[1;91m\]" # Red -BIGreen="\[\033[1;92m\]" # Green -BIYellow="\[\033[1;93m\]" # Yellow -BIBlue="\[\033[1;94m\]" # Blue -BIPurple="\[\033[1;95m\]" # Purple -BICyan="\[\033[1;96m\]" # Cyan -BIWhite="\[\033[1;97m\]" # White - -# High Intensty backgrounds -On_IBlack="\[\033[0;100m\]" # Black -On_IRed="\[\033[0;101m\]" # Red -On_IGreen="\[\033[0;102m\]" # Green -On_IYellow="\[\033[0;103m\]" # Yellow -On_IBlue="\[\033[0;104m\]" # Blue -On_IPurple="\[\033[10;95m\]" # Purple -On_ICyan="\[\033[0;106m\]" # Cyan -On_IWhite="\[\033[0;107m\]" # White - -# Various variables you might want for your PS1 prompt instead -Time12h="\T" -Time12a="\@" -PathShort="\w" -PathFull="\W" -NewLine="\n" -Jobs="\j" - - -# This PS1 snippet was adopted from code for MAC/BSD I saw from: http://allancraig.net/index.php?option=com_content&view=article&id=108:ps1-export-command-for-git&catid=45:general&Itemid=96 -# I tweaked it to work on UBUNTU 11.04 & 11.10 plus made it mo' better - -export PS1=$UWhite'\u'$Color_Off' '$IBlack$Time12h$Color_Off'$(git branch &>/dev/null;\ -if [ $? -eq 0 ]; then \ - echo "$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; \ - if [ "$?" -eq "0" ]; then \ - # @4 - Clean repository - nothing to commit - echo "'$Green'"$(__git_ps1 " (%s)"); \ - else \ - # @5 - Changes to working tree - echo "'$IRed'"$(__git_ps1 " {%s}"); \ - fi) '$BYellow$PathShort$Color_Off'\$ "; \ -else \ - # @2 - Prompt when not in GIT repo - echo " '$Yellow$PathShort$Color_Off'\$ "; \ -fi)' diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1ce5c11 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dotbot"] + path = dotbot + url = https://github.com/anishathalye/dotbot diff --git a/dotbot b/dotbot new file mode 160000 index 0000000..28959a3 --- /dev/null +++ b/dotbot @@ -0,0 +1 @@ +Subproject commit 28959a3f31d8632975de4e18d0a0e47476b5a413 diff --git a/install b/install new file mode 100755 index 0000000..b1baa33 --- /dev/null +++ b/install @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e + +CONFIG="install.conf.yaml" +DOTBOT_DIR="dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "${BASEDIR}" +git submodule update --init --recursive "${DOTBOT_DIR}" + +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" diff --git a/install.conf.yaml b/install.conf.yaml new file mode 100644 index 0000000..5e93b81 --- /dev/null +++ b/install.conf.yaml @@ -0,0 +1,16 @@ +- defaults: + link: + relink: true + +- clean: ['~'] + +- link: + ~/.dotfiles: '' + ~/.vim: vim + ~/.vimrc: vimrc + ~/.vimrc_vundle: vimrc_vundle + ~/.zpreztorc: zpreztorc + ~/.zshrc: zshrc + +- shell: + - [git submodule update --init --recursive, Installing submodules] diff --git a/.vim/bundle/Vundle.vim/CONTRIBUTING.md b/vim/bundle/Vundle.vim/CONTRIBUTING.md similarity index 100% rename from .vim/bundle/Vundle.vim/CONTRIBUTING.md rename to vim/bundle/Vundle.vim/CONTRIBUTING.md diff --git a/.vim/bundle/Vundle.vim/LICENSE-MIT.txt b/vim/bundle/Vundle.vim/LICENSE-MIT.txt similarity index 100% rename from .vim/bundle/Vundle.vim/LICENSE-MIT.txt rename to vim/bundle/Vundle.vim/LICENSE-MIT.txt diff --git a/.vim/bundle/Vundle.vim/README.md b/vim/bundle/Vundle.vim/README.md similarity index 100% rename from .vim/bundle/Vundle.vim/README.md rename to vim/bundle/Vundle.vim/README.md diff --git a/.vim/bundle/Vundle.vim/autoload/vundle.vim b/vim/bundle/Vundle.vim/autoload/vundle.vim similarity index 100% rename from .vim/bundle/Vundle.vim/autoload/vundle.vim rename to vim/bundle/Vundle.vim/autoload/vundle.vim diff --git a/.vim/bundle/Vundle.vim/autoload/vundle/config.vim b/vim/bundle/Vundle.vim/autoload/vundle/config.vim similarity index 100% rename from .vim/bundle/Vundle.vim/autoload/vundle/config.vim rename to vim/bundle/Vundle.vim/autoload/vundle/config.vim diff --git a/.vim/bundle/Vundle.vim/autoload/vundle/installer.vim b/vim/bundle/Vundle.vim/autoload/vundle/installer.vim similarity index 100% rename from .vim/bundle/Vundle.vim/autoload/vundle/installer.vim rename to vim/bundle/Vundle.vim/autoload/vundle/installer.vim diff --git a/.vim/bundle/Vundle.vim/autoload/vundle/scripts.vim b/vim/bundle/Vundle.vim/autoload/vundle/scripts.vim similarity index 100% rename from .vim/bundle/Vundle.vim/autoload/vundle/scripts.vim rename to vim/bundle/Vundle.vim/autoload/vundle/scripts.vim diff --git a/.vim/bundle/Vundle.vim/changelog.md b/vim/bundle/Vundle.vim/changelog.md similarity index 100% rename from .vim/bundle/Vundle.vim/changelog.md rename to vim/bundle/Vundle.vim/changelog.md diff --git a/.vim/bundle/Vundle.vim/doc/tags b/vim/bundle/Vundle.vim/doc/tags similarity index 100% rename from .vim/bundle/Vundle.vim/doc/tags rename to vim/bundle/Vundle.vim/doc/tags diff --git a/.vim/bundle/Vundle.vim/doc/vundle.txt b/vim/bundle/Vundle.vim/doc/vundle.txt similarity index 100% rename from .vim/bundle/Vundle.vim/doc/vundle.txt rename to vim/bundle/Vundle.vim/doc/vundle.txt diff --git a/.vim/bundle/Vundle.vim/test/files/test.erl b/vim/bundle/Vundle.vim/test/files/test.erl similarity index 100% rename from .vim/bundle/Vundle.vim/test/files/test.erl rename to vim/bundle/Vundle.vim/test/files/test.erl diff --git a/.vim/bundle/Vundle.vim/test/minirc.vim b/vim/bundle/Vundle.vim/test/minirc.vim similarity index 100% rename from .vim/bundle/Vundle.vim/test/minirc.vim rename to vim/bundle/Vundle.vim/test/minirc.vim diff --git a/.vim/bundle/Vundle.vim/test/vimrc b/vim/bundle/Vundle.vim/test/vimrc similarity index 100% rename from .vim/bundle/Vundle.vim/test/vimrc rename to vim/bundle/Vundle.vim/test/vimrc diff --git a/.vim/colors/monokai.vim b/vim/colors/monokai.vim similarity index 100% rename from .vim/colors/monokai.vim rename to vim/colors/monokai.vim diff --git a/.vimrc b/vimrc similarity index 61% rename from .vimrc rename to vimrc index 6458231..a59415d 100644 --- a/.vimrc +++ b/vimrc @@ -60,7 +60,8 @@ map k gk "leader bindings map :noh map ba :1,1000 bd! -map q :q +map q :bd +map qq :q map w :w "Return to last position when re-opening file @@ -78,7 +79,7 @@ function! HasPaste() endfunction set laststatus=2 -set statusline=\ %{HasPaste()}%F%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l/%L\ [%P]\ M%m\ %=%-5y\ %-5{&ff} +set statusline=\ %{HasPaste()}%F%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l/%L\ [Col\ %v]\ M%m\ %=%-5y\ %-5{&ff} let g:rehash256=1 let &t_Co=256 @@ -86,4 +87,37 @@ let &t_AF="\e[38;5;%dm" let &t_AB="\e[48;5;%dm" colorscheme monokai -"Add additional stuff here +"change tabs with tab and shift-tab +nnoremap gt +nnoremap gT + +set textwidth=100 + +autocmd BufWritePre * :%s/\s\+$//e + +highlight ColorColumn ctermfg=208 ctermbg=Black + +function! MarkMargin (on) + if exists('b:MarkMargin') + try + call matchdelete(b:MarkMargin) + catch /./ + endtry + unlet b:MarkMargin + endif + if a:on + let b:MarkMargin = matchadd('ColorColumn', '\%120v\s*\S', 120) + endif +endfunction + +augroup MarkMargin + autocmd! + autocmd BufEnter * :call MarkMargin(1) + autocmd BufEnter *.vp* :call MarkMargin(0) +augroup END + +"Reverse directions of # and * +nnoremap # * +nnoremap * # +inoremap jk +inoremap kj diff --git a/.vimrc_vundle b/vimrc_vundle similarity index 59% rename from .vimrc_vundle rename to vimrc_vundle index 795819b..62fe58d 100644 --- a/.vimrc_vundle +++ b/vimrc_vundle @@ -17,13 +17,16 @@ Plugin 'gmarik/Vundle.vim' " The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo -Plugin 'tpope/vim-fugitive' " plugin from http://vim-scripts.org/vim/scripts.html -Plugin 'L9' -Plugin 'FuzzyFinder' -Plugin 'Valloric/YouCompleteMe' -Plugin 'honza/vim-snippets' +Plugin 'tmhedberg/SimpylFold' +Plugin 'rizzatti/dash.vim' +Plugin 'vimwiki/vimwiki' +Plugin 'mattn/calendar-vim' +Plugin 'kien/ctrlp.vim' Plugin 'SirVer/ultisnips' +Plugin 'octol/vim-cpp-enhanced-highlight' +Plugin 'mattn/emmet-vim' +Plugin 'tpope/vim-surround' " All of your Plugins must be added before the following line call vundle#end() " required @@ -56,15 +59,53 @@ function! g:UltiSnips_Complete() return "" endfunction +let g:UltiSnipsExpandTrigger="" au BufEnter * exec "inoremap " . g:UltiSnipsExpandTrigger . " =g:UltiSnips_Complete()" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsListSnippets="" -" this mapping Enter key to to chose the current highlight item +" this mapping Enter key to to chose the current highlight item " and close the selection list, same as other IDEs. " CONFLICT with some plugins like tpope/Endwise inoremap pumvisible() ? "\" : "\u\" -" FuzzyFinder config -let g:fuf_keyOpenTabpage='' -nmap f :FufFile -nmap b :FufBuffer +"SimpylFold Config +let g:SimpylFold_docstring_preview=1 + +"CtrlP config +let g:ctrlp_map = 'f' +nmap b :CtrlPBuffer +nmap r :CtrlPMRU + +"Ranger utility function +function! RangeChooser() + let temp = tempname() + " The option "--choosefiles" was added in ranger 1.5.1. Use the next line + " with ranger 1.4.2 through 1.5.0 instead. + "exec 'silent !ranger --choosefile=' . shellescape(temp) + exec 'silent !ranger --choosefiles=' . shellescape(temp) + if !filereadable(temp) + redraw! + " Nothing to read. + return + endif + let names = readfile(temp) + if empty(names) + redraw! + " Nothing to open. + return + endif + " Edit the first item. + exec 'tabe ' . fnameescape(names[0]) + " Add any remaning items to the arg list/buffer list. + for name in names[1:] + exec 'argadd ' . fnameescape(name) + endfor + redraw! +endfunction +command! -bar RangerChooser call RangeChooser() +nnoremap o :RangerChooser + +let g:ycm_server_python_interpreter="/usr/local/bin/python2" +let g:ycm_confirm_extra_conf=0 + +let g:user_emmet_leader_key="" diff --git a/zpreztorc b/zpreztorc new file mode 100644 index 0000000..e93ac6b --- /dev/null +++ b/zpreztorc @@ -0,0 +1,165 @@ +# +# Sets Prezto options. +# +# Authors: +# Sorin Ionescu +# + +# +# General +# + +# Set case-sensitivity for completion, history lookup, etc. +# zstyle ':prezto:*:*' case-sensitive 'yes' + +# Color output (auto set to 'no' on dumb terminals). +zstyle ':prezto:*:*' color 'yes' + +# Set the Zsh modules to load (man zshmodules). +# zstyle ':prezto:load' zmodule 'attr' 'stat' + +# Set the Zsh functions to load (man zshcontrib). +# zstyle ':prezto:load' zfunction 'zargs' 'zmv' + +# Set the Prezto modules to load (browse modules). +# The order matters. +zstyle ':prezto:load' pmodule \ + 'environment' \ + 'terminal' \ + 'editor' \ + 'history' \ + 'directory' \ + 'spectrum' \ + 'utility' \ + 'completion' \ + 'prompt' + +# +# Autosuggestions +# + +# Set the query found color. +# zstyle ':prezto:module:autosuggestions:color' found '' + +# +# Editor +# + +# Set the key mapping style to 'emacs' or 'vi'. +zstyle ':prezto:module:editor' key-bindings 'emacs' + +# Auto convert .... to ../.. +# zstyle ':prezto:module:editor' dot-expansion 'yes' + +# +# Git +# + +# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'. +# zstyle ':prezto:module:git:status:ignore' submodules 'all' + +# +# GNU Utility +# + +# 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 +# + +# Set the Pacman frontend. +# zstyle ':prezto:module:pacman' frontend 'yaourt' + +# +# Prompt +# + +# Set the prompt theme to load. +# Setting it to 'random' loads a random theme. +# Auto set to 'off' on dumb terminals. +zstyle ':prezto:module:prompt' theme 'sorin' + +# +# Ruby +# + +# Auto switch the Ruby version on directory change. +# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes' + +# +# Screen +# + +# 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 +# + +# 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, only the main highlighter is enabled. +# 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' + +# +# Terminal +# + +# Auto set the tab and window titles. +# 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 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' + +# Integrate with iTerm2. +# zstyle ':prezto:module:tmux:iterm' integrate 'yes' diff --git a/zshrc b/zshrc new file mode 100644 index 0000000..1b90c65 --- /dev/null +++ b/zshrc @@ -0,0 +1,21 @@ +# +# Executes commands at the start of an interactive session. +# +# Authors: +# Sorin Ionescu +# + +# Source Prezto. +if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then + source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" +fi + +bindkey -v + +export EDITOR=/usr/local/bin/vim +export VISUAL=/usr/local/bin/vim + +bindkey -M viins 'kj' vi-cmd-mode +bindkey -M viins 'jk' vi-cmd-mode + +# Customize to your needs...