summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-08-31 21:35:23 +0200
committerpks <pks@pks.rocks>2021-08-31 21:35:23 +0200
commitaddd3b9253d61fd68f6104b5cdcdf0b411362a85 (patch)
treea4bbf3440d5ba536e02525cefee7e9883a99f1db
parentefdb4abe93738012ac7e160a522b33dc86e1a8d9 (diff)
zsh: OpenBSD
-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