From 7fb025cf4c6030fec4acc70c34d4afd20305d976 Mon Sep 17 00:00:00 2001 From: Terminator X Date: Wed, 14 Jul 2021 18:29:43 +0530 Subject: [PATCH] Updated Troubleshooting (markdown) --- Troubleshooting.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index cc5e098..54dda57 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -36,11 +36,14 @@ If the Esc key isn't working as expected, add the following in `.tmux To start `nnn` within tmux use a shell function: -```bash +```sh n () { - # use option -a for previews - tmux new-session nnn -a $@ + if [ -n "$TMUX" ]; then + nnn -a $@ + else + tmux new-session nnn -a $@ + fi } ```