Enable templating for dotfiles

This commit is contained in:
2018-08-17 19:44:31 +02:00
parent 153d16d540
commit 2654e28869
10 changed files with 79 additions and 9 deletions

View File

@@ -51,6 +51,12 @@ fi
# because gpg-agent is somehow broken for ssh, use the usual ssh-agent
eval $(ssh-agent -s)
{% if distro == 'fedora' %}
alias urxvt=urxvt256c
{% endif %}
alias vim="nvim"
# exec startx breaks some logind fuckery, without exec it works
if [[ -z $DISPLAY ]] ; then
if (( $XDG_VTNR == 1 )) ; then

View File

@@ -2,12 +2,16 @@
_zshdir="$HOME/.zshrc.d"
{% if machine.gpg_agent %}
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
{% endif %}
{% if machine.ssh_agent %}
if $(ssh-add -l 2>/dev/null | grep -q "no identities") ; then
ssh-add
fi
{% endif %}
for file in "${_zshdir}"/* ; do
if [[ -e "$file" ]] ; then