Skip to content

Commit

Permalink
Allow bash completion for notebooks with spaces in their name
Browse files Browse the repository at this point in the history
Tab completion after "jupyter notebook" now allows for filenames
containing spaces.
  • Loading branch information
andram committed Feb 8, 2018
1 parent eeed422 commit 4e96f35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jupyter-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ _jupyter()
local sub=$(echo $subcommands | sed -e "s/ / \t/g")
COMPREPLY=( $(compgen -W "${sub}" -- ${cur}) )
else
local IFS=$'\n'
compopt -o filenames
COMPREPLY=( $(compgen -f -- ${cur}) )
fi
fi
Expand Down

0 comments on commit 4e96f35

Please sign in to comment.