myos/ansible/roles/hosts/files/.bash_profile

20 lines
682 B
Bash
Raw Normal View History

2022-06-04 02:24:35 +02:00
# shellcheck shell=bash source=/dev/null
2021-06-16 13:19:52 +02:00
# ~/.bash_profile: executed by the command interpreter for bash login shell.
# bash-completion
if ! shopt -oq posix && [ -z "${BASH_COMPLETION_VERSINFO-}" ]; then
2022-06-04 02:24:35 +02:00
if [ "${BASH_VERSINFO[0]}" -gt 4 ] \
|| { [ "${BASH_VERSINFO[0]}" -eq 4 ] && [ "${BASH_VERSINFO[1]}" -ge 1 ] ;}; then
2021-06-16 13:19:52 +02:00
shopt -q progcomp && for file in \
/{*/local,usr}/share/bash-completion/bash_completion \
/etc/bash_completion; do
[ -r "$file" ] && . "$file"
done
fi
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ]; then
. "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
fi
fi
2022-06-22 10:02:09 +02:00
[ -f ~/.sh_profile ] && . ~/.sh_profile