etc/bashrc

40 lines
800 B
Bash
Raw Permalink 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"
2024-08-10 18:48:38 +02:00
type -t starship >/dev/null && eval "$(starship init bash)"
2015-09-20 09:10:00 +02:00
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
2024-08-14 03:24:56 +02:00
for fn in /usr/share/fzf/shell/key-bindings.bash /usr/share/fzf/key-bindings.bash; do
if test -f $fn; then
. $fn
break
fi
done