zsh,X11: Move ssh-agent from xinitrc to zprofile

As I also want the ssh-agent to run without X.
This commit is contained in:
2021-04-04 10:52:51 +02:00
parent 2478e7200e
commit 7d085eedd0
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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"