summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/.zshrc20
1 files 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