mirror of
https://github.com/thegeneralist01/config.git
synced 2026-07-21 19:05:19 +02:00
Add omp shell completions for fish, zsh, bash, and nushell
This commit is contained in:
parent
937fe2585e
commit
13267aafb3
3 changed files with 252 additions and 0 deletions
|
|
@ -204,6 +204,9 @@ in
|
|||
if set -q GHOSTTY_RESOURCES_DIR
|
||||
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish" 2>/dev/null
|
||||
end
|
||||
if command -sq omp
|
||||
omp completions fish | source
|
||||
end
|
||||
'';
|
||||
|
||||
functions = {
|
||||
|
|
@ -225,7 +228,17 @@ in
|
|||
export SHELL='${nuExe}'
|
||||
exec "$SHELL"
|
||||
fi
|
||||
|
||||
if command -v omp &>/dev/null; then
|
||||
eval "$(omp completions zsh)"
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.bash.initExtra = ''
|
||||
if command -v omp &>/dev/null; then
|
||||
eval "$(omp completions bash)"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
)
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue