diff options
| author | 2019-12-19 08:37:17 +0530 | |
|---|---|---|
| committer | 2019-12-19 08:45:26 +0530 | |
| commit | cf388649b9cd6fba38b9c0dca49c29bad3b6f737 (patch) | |
| tree | f0e72f2fb7a3fedfb8b0958a6e952addec0fc280 /misc/auto-completion/bash | |
| parent | 92ac068815a91de6ecaa0f385ccf71136086e7c1 (diff) | |
| download | nnn-cf388649b9cd6fba38b9c0dca49c29bad3b6f737.tar.gz | |
Internal states, sessions changes
- replace bools for internal non-persistent binary states with an uchar
- do not store path to session, derive from config path in tmp buffer
- program option to load session is not `-s`
- remove auto-stored session "@" on restore
- minor help update
Diffstat (limited to 'misc/auto-completion/bash')
| -rw-r--r-- | misc/auto-completion/bash/nnn-completion.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash index 11b8ef2..22da4af 100644 --- a/misc/auto-completion/bash/nnn-completion.bash +++ b/misc/auto-completion/bash/nnn-completion.bash @@ -16,7 +16,6 @@ _nnn () -b -c -d - -e -E -g -H @@ -28,6 +27,7 @@ _nnn () -Q -r -R + -s -S -t -v @@ -39,7 +39,7 @@ _nnn () COMPREPLY=( $(compgen -W "$bookmarks" -- "$cur") ) elif [[ $prev == -p ]]; then COMPREPLY=( $(compgen -f -d -- "$cur") ) - elif [[ $prev == -e ]]; then + elif [[ $prev == -s ]]; then local sessions_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions COMPREPLY=( $(cd "$sessions_dir" && compgen -f -d -- "$cur") ) elif [[ $cur == -* ]]; then |