1
0
Эх сурвалжийг харах

nixpkgs/elvish: use pwd for pushd

pwd ensures we get the absolute path
Thomas Dy 1 жил өмнө
parent
commit
2af3e33865

+ 3 - 3
.config/nixpkgs/elvish/lib/pushd.elv

@@ -1,9 +1,9 @@
 var dir-stack = [$pwd]
 
-fn on-chdir {|dir|
+fn on-chdir {|_dir|
   var last = $dir-stack[0]
-  if (not-eq $dir $last) {
-    set dir-stack = [ $dir $@dir-stack ]
+  if (not-eq $pwd $last) {
+    set dir-stack = [ $pwd $@dir-stack ]
   }
 }