Add pre-student
This commit is contained in:
1 parent
b7b49d1bbe
commit
9cdc3c82dd
65 files changed
+6718
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Requires kakpipe and unbuffer
|
||||
|
||||
declare-option str compile_last_command ""
|
||||
|
||||
define-command -docstring "Compile: run a command in a fifo buffer" compile -params 1.. %{
|
||||
set-option global compile_last_command "%arg{@}"
|
||||
evaluate-commands %sh{ exec kakpipe fifo -s $kak_session -- unbuffer "$@" }
|
||||
}
|
||||
|
||||
define-command -docstring "Recompile: re-run the last compile command" recompile %{
|
||||
evaluate-commands %sh{
|
||||
if [ -z "$kak_opt_compile_last_command" ]; then
|
||||
echo 'fail "No previous compile command"'
|
||||
else
|
||||
exec kakpipe fifo -s $kak_session -- unbuffer $kak_opt_compile_last_command
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user