~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/fish/.config/fish/completions/venv.fish -rw-r--r-- 590 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
function __fish_complete_venvs
    set -q VENV_DIR; or set -U VENV_DIR $XDG_DATA_HOME/venv
    printf "%s\n" (command ls $VENV_DIR)
end

complete -x -c venv -n '__fish_use_subcommand' -a 'create' -d 'Create a virtual environment'
complete -x -c venv -n '__fish_use_subcommand' -a 'rm' -d 'Delete a virtual environment'
complete -x -c venv -n '__fish_use_subcommand' -a 'ls' -d 'List all virtual environments'
complete -x -c venv -n '__fish_use_subcommand' -a '(__fish_complete_venvs)'
complete -x -c venv -n '__fish_seen_subcommand_from rm' -a '(__fish_complete_venvs)'
complete -x -c venv