aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-06 16:46:10 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-06 17:08:04 +0300
commit20c28c8da5175244305a57aaffe04432679022db (patch)
treecf4cab66cae989f15f9dff6eb76fb74e29cfddcb
parentadd Docker config.json (diff)
downloadlinux-home-20c28c8da5175244305a57aaffe04432679022db.tar.gz
linux-home-20c28c8da5175244305a57aaffe04432679022db.zip
.bashrc: fix tmux if there's no nnn
Diffstat (limited to '')
-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.