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:
@@ -44,6 +44,10 @@ fi
|
|||||||
# Locale settings as $LANG
|
# Locale settings as $LANG
|
||||||
[[ ! -e "$XDG_CONFIG_HOME/locale.conf" ]] || . "$XDG_CONFIG_HOME/locale.conf"
|
[[ ! -e "$XDG_CONFIG_HOME/locale.conf" ]] || . "$XDG_CONFIG_HOME/locale.conf"
|
||||||
|
|
||||||
|
# SSH
|
||||||
|
eval "$(ssh-agent)" >/dev/null
|
||||||
|
|
||||||
|
# Editor
|
||||||
if (( $+commands[nvim] )); then
|
if (( $+commands[nvim] )); then
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
elif (( $+commands[vim] )); then
|
elif (( $+commands[vim] )); then
|
||||||
@@ -54,6 +58,7 @@ elif (( $+commands[nano] )); then
|
|||||||
export EDITOR=nano
|
export EDITOR=nano
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Pager
|
||||||
if (( $+commands[nvim] )); then
|
if (( $+commands[nvim] )); then
|
||||||
export MANPAGER="nvim -c 'set ft=man' -"
|
export MANPAGER="nvim -c 'set ft=man' -"
|
||||||
else
|
else
|
||||||
|
|||||||
3
.xinitrc
3
.xinitrc
@@ -43,9 +43,6 @@ unset touchpad
|
|||||||
# Muted at startup
|
# Muted at startup
|
||||||
amixer -q -D pulse sset Master mute
|
amixer -q -D pulse sset Master mute
|
||||||
|
|
||||||
# SSH
|
|
||||||
eval $(ssh-agent)
|
|
||||||
|
|
||||||
# Compositor
|
# Compositor
|
||||||
compositor="${XDG_CONFIG_HOME:-$HOME/.config}"/compositor/launch.sh
|
compositor="${XDG_CONFIG_HOME:-$HOME/.config}"/compositor/launch.sh
|
||||||
[ ! -x "$compositor" ] || "$compositor"
|
[ ! -x "$compositor" ] || "$compositor"
|
||||||
|
|||||||
Reference in New Issue
Block a user