forked from lbesnard/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomplete
31 lines (23 loc) · 968 Bytes
/
complete
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
# complete to have list of vagrant nodes
_parser_option_vagrant_ssh_chef_aodn() {
local curr_arg
local option_list
curr_arg=${COMP_WORDS[COMP_CWORD]};
option_list=`ls $GITHUB_DIR/chef/nodes | sed "s/.json//g"`
COMPREPLY=( $(compgen -W '`echo $option_list`' -- $curr_arg ) );
}
alias vagrant_ssh_chef='cd $GITHUB_DIR/chef && vagrant ssh'
complete -F _parser_option_vagrant_ssh_chef_aodn vagrant_ssh_chef
# load beets music tagging completions
eval "$(beet completion)"
source $GITHUB_DIR/dotfiles/libs/cheat/cheat/autocompletion/cheat.zsh
_list_igc_files() {
local curr_arg
local option_list
curr_arg=${COMP_WORDS[COMP_CWORD]};
option_list=`ls $HOME/Dropbox/paragliding_igc/*.IGC`
COMPREPLY=( $(compgen -W '`echo $option_list`' -- $curr_arg ) );
}
complete -F _list_igc_files igc_viewer
alias paragliding_create_osm_map='$GITHUB_DIR/OSM_Tile_Download/osm_ogie3d.py'
complete -F _list_igc_files paragliding_create_osm_map