etc/bashrc

32 lines
616 B
Bash

# Copyright (C) 2015 Gabriel Ebner
. ~/.commonshrc
if [[ $- != *i* ]]; then
# Shell is non-interactive. Be done now
return
fi
HISTCONTROL=ignoredups:erasedups
HISTFILESIZE=100000
HISTSIZE=100000
HISTFILE=~/.bash_history
shopt -s histappend
PROMPT_COMMAND="history -a; history -c; history -r"
. ~/etc/liquidprompt/liquidprompt
shopt -s autocd
# Bash completion
for i in /etc/profile.d/bash-completion /etc/bash_completion; do
test -f $i && . $i && break
done
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