From addd3b9253d61fd68f6104b5cdcdf0b411362a85 Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 31 Aug 2021 21:35:23 +0200 Subject: zsh: OpenBSD --- zsh/.zshrc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 67bd270..2effa00 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -60,13 +60,15 @@ function start_agent { if [[ $_USERNAME != "root" ]]; then - if [ -f "${SSH_ENV}" ]; then - . "${SSH_ENV}" > /dev/null - ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || { - start_agent - } - else - start_agent; + if [[ $_HOST_TYPE != "OpenBSD" ]]; then + if [ -f "${SSH_ENV}" ]; then + . "${SSH_ENV}" > /dev/null + ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || { + start_agent + } + else + start_agent; + fi fi fi @@ -362,7 +364,9 @@ alias lh='ls --color=always -lasth | less' alias equery='sudo equery -N' alias feh='feh -F --auto-rotate' alias git='git -c color.status=always' -alias grep='grep --color=auto' +if [[ $_HOST_TYPE != "OpenBSD" ]]; then + alias grep='grep --color=auto' +fi alias pdf='zathura' alias py='bpython' alias vi=$EDITOR -- cgit v1.2.3