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
|
15
roles/shell/templates/zshrc.zsh.j2
Normal file
15
roles/shell/templates/zshrc.zsh.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
PROMPT="{{ zsh_prompt }} "
|
||||
setopt autocd extendedglob nomatch notify prompt_subst
|
||||
autoload -Uz compinit && compinit
|
||||
unsetopt beep
|
||||
bindkey -v
|
||||
|
||||
[ -e ~/.zstyles ] && source ~/.zstyles
|
||||
[ -e ~/.env ] && source ~/.env
|
||||
|
||||
for src in `/bin/ls ~/.zshrc.d`; do
|
||||
[ -e $src ] && source $src
|
||||
done
|
||||
source ~/.zshrc.d/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
Reference in New Issue
Block a user