etc/bashrc

43 lines
869 B
Bash
Raw Normal View History

2015-09-20 07:10:00 +00:00
# Copyright (C) 2015 Gabriel Ebner
2011-04-30 18:21:21 +00:00
. ~/.commonshrc
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
2015-09-20 07:43:13 +00:00
PROMPT_COMMAND="history -a; history -c; history -r"
2024-08-10 16:48:38 +00:00
type -t starship >/dev/null && eval "$(starship init bash)"
2015-09-20 07:10:00 +00:00
shopt -s autocd
2015-09-20 13:36:48 +00: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 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
2024-08-14 01:24:56 +00: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
2024-09-29 03:52:21 +00:00
# add Pulumi to the PATH
export PATH=$PATH:/home/gebner/.pulumi/bin