diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-06 16:46:10 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-06 17:08:04 +0300 |
commit | 20c28c8da5175244305a57aaffe04432679022db (patch) | |
tree | cf4cab66cae989f15f9dff6eb76fb74e29cfddcb /%HOME% | |
parent | add Docker config.json (diff) | |
download | linux-home-20c28c8da5175244305a57aaffe04432679022db.tar.gz linux-home-20c28c8da5175244305a57aaffe04432679022db.zip |
.bashrc: fix tmux if there's no nnn
Diffstat (limited to '%HOME%')
-rw-r--r-- | %HOME%/.bashrc | 4 |
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. |