add mise config
This commit is contained in:
parent
6b6c6e5a0b
commit
8ade0b6795
5 changed files with 531 additions and 469 deletions
17
Configs/fish/.config/fish/completions/mise.fish
Normal file
17
Configs/fish/.config/fish/completions/mise.fish
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# if "usage" is not installed show an error
|
||||
if ! command -v usage &> /dev/null
|
||||
echo >&2
|
||||
echo "Error: usage CLI not found. This is required for completions to work in mise." >&2
|
||||
echo "See https://usage.jdx.dev for more information." >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
if ! set -q _usage_spec_mise_2025_7_29
|
||||
set -g _usage_spec_mise_2025_7_29 (mise usage | string collect)
|
||||
end
|
||||
set -l tokens
|
||||
if commandline -x >/dev/null 2>&1
|
||||
complete -xc mise -a '(usage complete-word --shell fish -s "$_usage_spec_mise_2025_7_29" -- (commandline -xpc) (commandline -t))'
|
||||
else
|
||||
complete -xc mise -a '(usage complete-word --shell fish -s "$_usage_spec_mise_2025_7_29" -- (commandline -opc) (commandline -t))'
|
||||
end
|
||||
|
|
@ -4,4 +4,7 @@ if status is-interactive
|
|||
# Commands to run in interactive sessions can go here
|
||||
zoxide init --cmd cd fish | source
|
||||
atuin init fish | source
|
||||
|
||||
mise activate fish | source
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue