diff options
Diffstat (limited to 'misc/auto-completion/bash')
| -rw-r--r-- | misc/auto-completion/bash/nnn-completion.bash | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash index d97b144..22180e5 100644 --- a/misc/auto-completion/bash/nnn-completion.bash +++ b/misc/auto-completion/bash/nnn-completion.bash @@ -34,6 +34,9 @@ _nnn () { COMPREPLY=( $(compgen -W "$bookmarks" -- "$cur") ) elif [[ $prev == -p ]]; then COMPREPLY=( $(compgen -f -d -- "$cur") ) + elif [[ $prev == -e ]]; then + local sessions_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions + COMPREPLY=( $(compgen -W "$(ls $sessions_dir)" -- "$cur") ) elif [[ $cur == -* ]]; then COMPREPLY=( $(compgen -W "${opts[*]}" -- "$cur") ) else |