AutoYADM commit: 2025-05-21 17:32:39

This commit is contained in:
Daniel Fichtinger 2025-05-21 17:32:39 -04:00
parent eec0ac0db8
commit 82139a725e
2 changed files with 9 additions and 0 deletions

View file

@ -48,7 +48,11 @@ function kak-session -w kak --description "kakoune where sessions are derived fr
set fifo "$fifo_dir/fifo"
mkfifo "$fifo"
if not set -gq nokakdaemon
setsid kak -d -s "$session_id" -E "cd %[$kakroot]; echo -to-file $fifo ready" &
else
setsid kak -s "$session_id" -E "cd %[$kakroot]; echo -to-file $fifo ready" &
end
# once $fifo has data, the kakoune server has initialized.
cat $fifo >/dev/null
@ -76,7 +80,11 @@ function kak-session -w kak --description "kakoune where sessions are derived fr
set fifo "$fifo_dir/fifo"
mkfifo "$fifo"
if not set -gq nokakdaemon
setsid kak -d -s "$session_id" -E "cd %[$git_dir]; echo -to-file $fifo ready" &
else
setsid kak -s "$session_id" -E "cd %[$git_dir]; echo -to-file $fifo ready" &
end
# once $fifo has data, the kakoune server has initialized.
cat $fifo >/dev/null

View file

@ -1,5 +1,6 @@
function kakrc --description "Edit kakrc. -c to force a new session."
if test "$argv[1]" != -c || test "$argv[1]" != new
# set -g nokakdaemon
kak-session ~/.config/kak/kakrc
else
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc