2015-09-20 07:10:00 +00:00
|
|
|
# Copyright (C) 2015 Gabriel Ebner
|
2008-03-16 21:02:24 +00:00
|
|
|
|
2011-04-30 18:21:21 +00:00
|
|
|
. ~/.commonshrc
|
2008-03-16 21:02:24 +00:00
|
|
|
|
|
|
|
if [[ $- != *i* ]]; then
|
|
|
|
# Shell is non-interactive. Be done now
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
2015-09-20 07:10:00 +00:00
|
|
|
HISTCONTROL=ignoredups:erasedups
|
|
|
|
HISTFILESIZE=100000
|
|
|
|
HISTSIZE=100000
|
|
|
|
HISTFILE=~/.bash_history
|
|
|
|
shopt -s histappend
|
2008-03-16 21:02:24 +00:00
|
|
|
|
2015-09-20 07:43:13 +00:00
|
|
|
PROMPT_COMMAND="history -a; history -c; history -r"
|
2015-09-20 07:10:00 +00:00
|
|
|
. ~/etc/liquidprompt/liquidprompt
|
|
|
|
|
|
|
|
shopt -s autocd
|
2015-09-20 13:36:48 +00:00
|
|
|
shopt -s globstar
|
2008-03-16 21:02:24 +00:00
|
|
|
|
|
|
|
# Bash completion
|
|
|
|
for i in /etc/profile.d/bash-completion /etc/bash_completion; do
|
|
|
|
test -f $i && . $i && break
|
|
|
|
done
|
2015-09-20 07:22:44 +00:00
|
|
|
|
|
|
|
alias gl='git pull'
|
|
|
|
alias gp='git push'
|
|
|
|
if type -t __git_complete >/dev/null; then
|
|
|
|
__git_complete gl _git_pull
|
|
|
|
__git_complete gp _git_push
|
|
|
|
fi
|
2016-01-17 18:48:09 +00:00
|
|
|
|
|
|
|
test -f ~/.fzf/shell/key-bindings.bash && . ~/.fzf/shell/key-bindings.bash
|