Ansible god!
Big rework! Control stuffs with variables! We still should do some movei'n around of roles before extending features.
This commit is contained in:
25
roles/shell/templates/bashrc.sh.j2
Normal file
25
roles/shell/templates/bashrc.sh.j2
Normal file
@@ -0,0 +1,25 @@
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
shopt -s histappend checkwinsize globstar
|
||||
HISTFILESIZE=42069
|
||||
HISTSIZE=42069
|
||||
#PS1='${debian_chroot:+($debian_chroot)}{{ bash_prompt }} '
|
||||
PS1='{{ bash_prompt }} '
|
||||
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
[ -f ~/.bash_aliases ] && . ~/.bash_aliases
|
||||
[ -f ~/.aliases ] && . ~/.aliases
|
||||
[ -f ~/.env ] && . ~/.env
|
||||
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
Reference in New Issue
Block a user