diff options
-rw-r--r-- | zsh/.zshrc | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -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 |