etc/bashrc

35 lines
710 B
Bash
Raw Normal View History

2015-09-20 09:10:00 +02:00
# Copyright (C) 2015 Gabriel Ebner
2011-04-30 20:21:21 +02:00
. ~/.commonshrc
if [[ $- != *i* ]]; then
# Shell is non-interactive. Be done now
return
fi
2015-09-20 09:10:00 +02:00
HISTCONTROL=ignoredups:erasedups
HISTFILESIZE=100000
HISTSIZE=100000
HISTFILE=~/.bash_history
shopt -s histappend
2015-09-20 09:43:13 +02:00
PROMPT_COMMAND="history -a; history -c; history -r"
2015-09-20 09:10:00 +02:00
. ~/etc/liquidprompt/liquidprompt
shopt -s autocd
2015-09-20 15:36:48 +02:00
shopt -s globstar
# Bash completion
for i in /etc/profile.d/bash-completion /etc/bash_completion; do
test -f $i && . $i && break
done
2015-09-20 09:22:44 +02: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 19:48:09 +01:00
test -f ~/.fzf/shell/key-bindings.bash && . ~/.fzf/shell/key-bindings.bash