felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1810323 - /felix/trunk/gogo/jline/src/main/resources/gosh_profile
Date Mon, 02 Oct 2017 09:33:38 GMT
Author: gnodet
Date: Mon Oct  2 09:33:38 2017
New Revision: 1810323

URL: http://svn.apache.org/viewvc?rev=1810323&view=rev
Log:
[FELIX-5635][gogo][jline] The "cd" command should not attempt to complete multiple directories

Modified:
    felix/trunk/gogo/jline/src/main/resources/gosh_profile

Modified: felix/trunk/gogo/jline/src/main/resources/gosh_profile
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/jline/src/main/resources/gosh_profile?rev=1810323&r1=1810322&r2=1810323&view=diff
==============================================================================
--- felix/trunk/gogo/jline/src/main/resources/gosh_profile (original)
+++ felix/trunk/gogo/jline/src/main/resources/gosh_profile Mon Oct  2 09:33:38 2017
@@ -126,7 +126,7 @@ try {
 
   complete -c gogo:cd -e
   complete -c gogo:cd -d "Change current directory"
-  complete -c gogo:cd -a '__directories'
+  complete -c gogo:cd -a 'wi = ($.commandLine wordIndex); if { %(wi==1) } { __directories
} { [ ] }'
 
   complete -c gogo:sleep -e
   complete -c gogo:sleep -d "Pause execution for the specified amount of time"



Mime
View raw message