Enable templating for dotfiles
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user