dotfiles/.bashrc_local

31 lines
1015 B
Plaintext

###############################################################
# File: .bashrc_local
# jul.io
###############################################################
# Some settings stolen from sensible.bash
# Automatically trim long paths in the prompt (requires Bash 4.x)
#PROMPT_DIRTRIM=2
# Perform file completion in a case insensitive fashion
bind "set completion-ignore-case on"
# Save multi-line commands as one command
shopt -s cmdhist
# Avoid duplicate entries
HISTCONTROL="erasedups:ignoreboth"
# Enable incremental history search with up/down arrows (also Readline goodness)
# Learn more about this here: http://codeinthehole.com/writing/the-most-important-command-line-tip-incremental-history-searching-with-inputrc/
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\e[C": forward-char'
bind '"\e[D": backward-char'
# vi editing mode
set -o vi
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - bash)"