]> Sergey Matveev's repositories - nnn.git/commitdiff
Replace single dot with source for fish shell
authorJoni Salmi <josalmi@users.noreply.github.com>
Mon, 26 Nov 2018 12:21:59 +0000 (14:21 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Nov 2018 12:21:59 +0000 (14:21 +0200)
Single dot has been deprecated and can cause issues with users on newer version: https://github.com/fish-shell/fish-shell/issues/310

scripts/quitcd/quitcd.fish

index 079f33e2029d31fad8fa610bc0e36ecacb6f0cf3..e7eec5e14962a4757312d8d2edad1f46e771ee8d 100644 (file)
@@ -4,7 +4,7 @@ function n --description 'support nnn quit and change directory'
         nnn $argv
 
         if test -e $NNN_TMPFILE
-                . $NNN_TMPFILE
+                source $NNN_TMPFILE
                 rm $NNN_TMPFILE
         end
 end