We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d98740 commit f9e2061Copy full SHA for f9e2061
1 file changed
.zshrc
@@ -775,6 +775,18 @@ fi
775
# End of lines added by compinstall
776
# ---------------------------------------------
777
778
+# Completion for sb() — completes first arg with nono profile names.
779
+_sb() {
780
+ if (( CURRENT == 2 )); then
781
+ local -a profiles
782
+ profiles=(~/.config/nono/profiles/*.json(N:t:r))
783
+ _describe 'nono profile' profiles
784
+ else
785
+ _files
786
+ fi
787
+}
788
+compdef _sb sb
789
+
790
# Ignore useless files, like .pyc.
791
zstyle ':completion:*:(all-|)files' ignored-patterns '(|*/).pyc'
792
0 commit comments