summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--home/.profile2
-rw-r--r--home/.shrc2
2 files changed, 2 insertions, 2 deletions
diff --git a/home/.profile b/home/.profile
index 031d2e1e..796e975f 100644
--- a/home/.profile
+++ b/home/.profile
@@ -15,7 +15,7 @@ export CLICOLOR=1
 export GPG_TTY=$(tty)
 export NETHACKOPTIONS='pickup_types:$!?+/=, color, DECgraphics'
 
-type nvim >/dev/null || EDITOR=vim
+type nvim >/dev/null 2>&1 || EDITOR=vim
 [ -e /usr/share/mk/sys.mk ] || export CFLAGS=-O
 [ -d /usr/home ] && cd
 
diff --git a/home/.shrc b/home/.shrc
index 65dda9da..feb679ef 100644
--- a/home/.shrc
+++ b/home/.shrc
@@ -15,7 +15,7 @@ alias gc='git commit' gca='gc --amend' gt='git tag'
 alias gp='git push' gu='git pull' gf='git fetch'
 alias rand='openssl rand -base64 33'
 alias private='eval "$(gpg -d ~/.private)"'
-type doas 2>/dev/null && alias sudo=doas
+type doas >/dev/null 2>&1 && alias sudo=doas
 
 cd() {
 	if [ $# -eq 0 ]; then