diff options
author | pks <pks@pks.rocks> | 2021-08-31 21:35:23 +0200 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-08-31 21:35:23 +0200 |
commit | addd3b9253d61fd68f6104b5cdcdf0b411362a85 (patch) | |
tree | a4bbf3440d5ba536e02525cefee7e9883a99f1db | |
parent | efdb4abe93738012ac7e160a522b33dc86e1a8d9 (diff) |
zsh: OpenBSD
-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 |