nnn

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

commit e0685e98c270e4611e4a9adf378b4e63190c7984
parent 0f10bd6cdcf210ed3e5cd4d3e0b5fe580818b586
Author: Arun <engineerarun@gmail.com>
Date:   Tue,  4 Jun 2024 02:55:56 +0530

Merge pull request #1890 from BeyondMagic/master

quitcd: fix range limits for new nushell version
Diffstat:
Mmisc/quitcd/quitcd.nu | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/misc/quitcd/quitcd.nu b/misc/quitcd/quitcd.nu @@ -28,7 +28,9 @@ export def --env n [ if ($nnn_tmpfile | path exists) { # Remove <cd '> from the first part of the string and the last single quote <'>. # Fix post-processing of nnn's given path that escapes its single quotes with POSIX syntax. - let path = open $nnn_tmpfile | str substring 4..-1 | str replace --all `'\''` `'` + let path = open $nnn_tmpfile + | str replace --all --regex `^cd '|'$` `` + | str replace --all `'\''` `'` ^rm -- $nnn_tmpfile