From 20c28c8da5175244305a57aaffe04432679022db Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 6 Jan 2021 16:46:10 +0300 Subject: .bashrc: fix tmux if there's no nnn --- %HOME%/.bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3