etc/bashrc

35 lines
752 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"
type -t starship >/dev/null && eval "$(starship init bash)"
shopt -s autocd
shopt -s globstar
# 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
test -f /usr/share/fzf/shell/key-bindings.bash && . /usr/share/fzf/shell/key-bindings.bash