-
Notifications
You must be signed in to change notification settings - Fork 471
/
completion_unix.txt
53 lines (46 loc) · 1.26 KB
/
completion_unix.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[windows] skip 'UNIX only'
# test chezmoi cat completion of targets in a directory
chezmoi __complete cat $HOME
cmpenv stdout golden/complete-target-home
# test chezmoi cat completion of matching absolute targets
chezmoi __complete cat $HOME/.f
cmpenv stdout golden/complete-target-home-dot-f
# test chezmoi cat completion of matching relative targets
cd $HOME
chezmoi __complete cat .f
cmpenv stdout $WORK/golden/complete-dot-f-in-home
cd $WORK
# test chezmoi chattr completion of attributes
chezmoi __complete chattr p
cmp stdout golden/complete-attribute-p
# test chezmoi chattr completion of targets
chezmoi __complete cat private $HOME
cmpenv stdout golden/complete-target-home
# test chezmoi docs completion of documents
chezmoi __complete docs re
cmp stdout golden/complete-docs-re
-- golden/complete-attribute-p --
private
:4
-- golden/complete-docs-re --
reference.md
related.md
:4
-- golden/complete-target-home --
$HOME/.dir/
$HOME/.dir/file
$HOME/.file
:4
-- golden/complete-dot-f-in-home --
.file
:4
-- golden/complete-target-home-dot-f --
$HOME/.file
:4
-- home/user/.config/chezmoi/chezmoi.toml --
[completion]
custom = true
-- home/user/.local/share/chezmoi/dot_dir/file --
# contents of .dir/file
-- home/user/.local/share/chezmoi/dot_file --
# contents of .file