We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c12e4da commit c18756cCopy full SHA for c18756c
completions/ulimit
@@ -32,6 +32,8 @@ _ulimit()
32
fi
33
34
35
+ [[ $prev == -[SH] ]] && return
36
+
37
local args
38
_count_args
39
((args == 1)) &&
test/t/test_ulimit.py
@@ -1,5 +1,7 @@
1
import pytest
2
3
+from conftest import assert_complete
4
5
6
class TestUlimit:
7
@pytest.mark.complete("ulimit ")
@@ -33,3 +35,8 @@ def test_6(self, completion):
def test_7(self, completion):
"""Test modes are NOT completed with -a given somewhere."""
assert not completion
+ @pytest.mark.parametrize("flag", ["-S", "-H"])
40
+ def test_no_special_values_after_soft_or_hard(self, bash, flag):
41
+ completion = assert_complete(bash, "ulimit %s " % flag)
42
+ assert not completion
0 commit comments