prezto/runcoms/zshrc
2016-08-10 09:52:21 +09:00

33 lines
662 B
Bash

#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
eval "$(rbenv init -)"
export PGDATA=/usr/local/var/postgres
export GOPATH=$HOME/.go
alias g='git'
alias bi='bundle install'
alias be='bundle exec'
function peco-src () {
local selected_dir=$(ghq list -p | peco --query "$LBUFFER")
if [ -n "$selected_dir" ]; then
BUFFER="cd ${selected_dir}"
zle accept-line
fi
zle clear-screen
}
zle -N peco-src
bindkey '^]' peco-src