From 7d085eedd0f0e0efd7719f82823c5c9a721df9fe Mon Sep 17 00:00:00 2001 From: druckdev Date: Sun, 4 Apr 2021 10:52:51 +0200 Subject: [PATCH] zsh,X11: Move ssh-agent from xinitrc to zprofile As I also want the ssh-agent to run without X. --- .config/zsh/.zprofile | 5 +++++ .xinitrc | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 99cdd44..715ff3f 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -44,6 +44,10 @@ fi # Locale settings as $LANG [[ ! -e "$XDG_CONFIG_HOME/locale.conf" ]] || . "$XDG_CONFIG_HOME/locale.conf" +# SSH +eval "$(ssh-agent)" >/dev/null + +# Editor if (( $+commands[nvim] )); then export EDITOR=nvim elif (( $+commands[vim] )); then @@ -54,6 +58,7 @@ elif (( $+commands[nano] )); then export EDITOR=nano fi +# Pager if (( $+commands[nvim] )); then export MANPAGER="nvim -c 'set ft=man' -" else diff --git a/.xinitrc b/.xinitrc index 6c64b73..7448103 100644 --- a/.xinitrc +++ b/.xinitrc @@ -43,9 +43,6 @@ unset touchpad # Muted at startup amixer -q -D pulse sset Master mute -# SSH -eval $(ssh-agent) - # Compositor compositor="${XDG_CONFIG_HOME:-$HOME/.config}"/compositor/launch.sh [ ! -x "$compositor" ] || "$compositor"