prezto/runcoms/zshrc

35 lines
684 B
Bash
Raw Normal View History

2012-01-31 23:37:51 -05:00
#
# Executes commands at the start of an interactive session.
2012-01-31 23:37:51 -05:00
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
2012-09-03 16:13:53 -04:00
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
2016-07-10 10:34:13 +09:00
eval "$(rbenv init -)"
2016-07-17 22:40:40 +09:00
export PGDATA=/usr/local/var/postgres
2016-08-10 09:52:21 +09:00
export GOPATH=$HOME/.go
2016-07-17 22:40:40 +09:00
2016-07-10 10:34:13 +09:00
alias g='git'
alias bi='bundle install'
alias be='bundle exec'
2016-08-22 13:24:55 +09:00
alias hb='hub browse'
2016-07-10 10:34:13 +09:00
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