Skip to content

Commit 3f90f09

Browse files
committed
ecryptfs-migrate-home: New completion
1 parent 6b5c8d4 commit 3f90f09

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ bashcomp_DATA = 2to3 \
8787
e2freefrag \
8888
e2label \
8989
ebtables \
90+
ecryptfs-migrate-home \
9091
_eject \
9192
eog \
9293
ether-wake \

completions/ecryptfs-migrate-home

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ecryptfs-migrate-home(8) completion -*- shell-script -*-
2+
3+
_ecryptfs_migrate_home()
4+
{
5+
local cur prev words cword
6+
_init_completion || return
7+
8+
case $prev in
9+
--help)
10+
return
11+
;;
12+
--user|-u)
13+
COMPREPLY=( $( compgen -u -- "$cur" ) )
14+
return
15+
;;
16+
esac
17+
18+
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
19+
} &&
20+
complete -F _ecryptfs_migrate_home ecryptfs-migrate-home
21+
22+
# ex: filetype=sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
assert_source_completions ecryptfs-migrate-home
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
proc setup {} {
2+
save_env
3+
}
4+
5+
6+
proc teardown {} {
7+
assert_env_unmodified
8+
}
9+
10+
11+
setup
12+
13+
14+
assert_complete_any "ecryptfs-migrate-home "
15+
sync_after_int
16+
17+
18+
teardown

0 commit comments

Comments
 (0)