From 6d1e91bcbdda2c18e2ef97cfc7a636d038874c4d Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Thu, 11 May 2023 19:58:55 -0400 Subject: [PATCH] Update tmux.md Fix the tmux command --- docs/tmux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tmux.md b/docs/tmux.md index 8263010..415f3a9 100644 --- a/docs/tmux.md +++ b/docs/tmux.md @@ -6,7 +6,7 @@ Add these lines to your Tmux config file to access **navi** by pressing `prefix ```sh bind-key -T prefix C-g split-window \ - "$SHELL --login -i -c 'navi --print | head -c -1 | tmux load-buffer -b tmp - ; tmux paste-buffer -p -t {last} -b tmp -d'" + "$SHELL --login -i -c 'navi --print | head -n 1 | tmux load-buffer -b tmp - ; tmux paste-buffer -p -t {last} -b tmp -d'" ``` Example cheatsheet: