nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9e3bd377b0c721ec9abc2040f5396e39560aa8d1
parent a7fd4957dd88e0a3cf61150da2928f09e533d08b
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 22 Nov 2020 20:54:49 +0530

Remove trailing spaces

Diffstat:
Mplugins/fzcd | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/fzcd b/plugins/fzcd @@ -24,14 +24,14 @@ if [ -n "$sel" ]; then # by fzf command is absolute case $sel in /*) nnn_cd "$sel" ;; - *) + *) # Remove "./" prefix if it exists sel="${sel#./}" - + if [ "$PWD" = "/" ]; then nnn_cd "/$sel" else nnn_cd "$PWD/$sel" fi;; - esac + esac fi