AutoYADM commit: 2025-05-16 21:41:15
This commit is contained in:
parent
52eda524a4
commit
4b28f5f35c
1 changed files with 22 additions and 11 deletions
|
@ -3,18 +3,29 @@ declare-option -hidden str fishr_path %sh{ dirname "$kak_source" }
|
||||||
# provide-module fishr %~
|
# provide-module fishr %~
|
||||||
|
|
||||||
define-command fish -params 1.. -docstring %{
|
define-command fish -params 1.. -docstring %{
|
||||||
fish [<switches>] [args...] code: Execute provided Fish code
|
fish [args...] code: Execute provided Fish code
|
||||||
Switches:
|
Switches:
|
||||||
-debug idk lol
|
-debug idk lol
|
||||||
} %{
|
} %{
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
results=$(fish -c "$@")
|
env fish -c "$*"
|
||||||
echo "echo $results"
|
# export kak_buffile="$kak_buffile"
|
||||||
}
|
# fish <<< "$@"
|
||||||
# evaluate-commands %sh{
|
# fish_code="$*"
|
||||||
# results=$(fish -c 'echo '"$@"'')
|
# fish -c "$fish_code"
|
||||||
# printf '%s\n' "echo -quoting shell $result"
|
# results=$(fish -c "echo")
|
||||||
# }
|
# echo "echo $results"
|
||||||
|
}
|
||||||
|
# evaluate-commands %sh{
|
||||||
|
# results=$(fish -c 'echo '"$@"'')
|
||||||
|
# printf '%s\n' "echo -quoting shell $result"
|
||||||
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
# ~
|
# ~
|
||||||
|
|
||||||
|
define-command fish-test %{
|
||||||
|
fish %{
|
||||||
|
echo "info $kak_buffile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue