terminal: Add carapace completions to all shells
Bash, nushell and zsh all make use of carapace completions by default.
This commit is contained in:
parent
e44baaf207
commit
4b65069436
4 changed files with 12 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ alias ls='ls --color=auto'
|
||||||
|
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
eval "$(zoxide init bash)"
|
eval "$(zoxide init bash)"
|
||||||
|
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
|
||||||
|
source <(carapace _carapace)
|
||||||
|
|
||||||
set -o vi
|
set -o vi
|
||||||
stty time 0
|
stty time 0
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@ starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.n
|
||||||
atuin init nu | save -f ($nu.data-dir | path join "vendor/autoload/atuin.nu")
|
atuin init nu | save -f ($nu.data-dir | path join "vendor/autoload/atuin.nu")
|
||||||
# load zoxide bookmarks
|
# load zoxide bookmarks
|
||||||
zoxide init nushell | save -f ($nu.data-dir | path join "vendor/autoload/zoxide.nu")
|
zoxide init nushell | save -f ($nu.data-dir | path join "vendor/autoload/zoxide.nu")
|
||||||
|
# load carapace completions
|
||||||
|
source ~/.cache/carapace/init.nu
|
||||||
|
|
||||||
|
|
||||||
# keybinds
|
# keybinds
|
||||||
$env.config.keybindings = [
|
$env.config.keybindings = [
|
||||||
|
|
|
||||||
|
|
@ -16,3 +16,8 @@
|
||||||
#
|
#
|
||||||
# You can remove these comments if you want or leave
|
# You can remove these comments if you want or leave
|
||||||
# them for future reference.
|
# them for future reference.
|
||||||
|
|
||||||
|
## create carapace completions
|
||||||
|
$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' # optional
|
||||||
|
mkdir ~/.cache/carapace
|
||||||
|
carapace _carapace nushell | save --force ~/.cache/carapace/init.nu
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,8 @@ setopt autocd
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
eval "$(atuin init zsh)"
|
eval "$(atuin init zsh)"
|
||||||
|
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
|
||||||
|
source <(carapace _carapace)
|
||||||
|
|
||||||
# Speed up autocomplete, force prefix mapping
|
# Speed up autocomplete, force prefix mapping
|
||||||
zstyle ':completion:*' accept-exact '*(N)'
|
zstyle ':completion:*' accept-exact '*(N)'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue