aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--%HOME%/.bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc
index 0c9bc2e..c53664a 100644
--- a/%HOME%/.bashrc
+++ b/%HOME%/.bashrc
@@ -150,7 +150,9 @@ multiplexed() {
if multiplexed && ! inside_nnn && local_terminal; then
# Launch nnn automatically in tmux, except when I'm inside a ssh session.
- command -v nnn &> /dev/null && exec nnn
+ # `which` instead of the normal `command -v` here because we need the
+ # actual external executable, not the function defined above.
+ which nnn &> /dev/null && exec nnn
fi
# tmux: start automatically.