From 54fbef9b9ec18940bbe00f5c3bb0f5c27a25850f Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 18 Nov 2025 12:45:25 +0100 Subject: [PATCH] use `command` for detection over `which` --- .bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index a105949..1150396 100644 --- a/.bash_profile +++ b/.bash_profile @@ -13,7 +13,7 @@ export XDG_STATE_HOME="$HOME/var/lib" # state data that should persist between export XDG_CACHE_HOME="$HOME/var/cache" # user-specific non-essential (cached) data. export PATH="$XDG_BIN_HOME:$PATH" # add our bin in front of PATH, making it take precedence -if which nvim 1>/dev/null; then +if command -v nvim &>/dev/null; then export EDITOR=nvim # use neovim as an editor export VISUAL=nvim # use neovim for visual-based editors export MANPAGER='nvim +Man!' # use neovim as a manual pager