You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
638 B
33 lines
638 B
#
|
|
# 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
|
|
|
|
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
|