kak-tree/start_test.sh

9 lines
581 B
Bash
Raw Normal View History

2023-11-12 22:57:29 +01:00
set -e
2023-12-19 18:55:44 +01:00
if [ "$1" == "--no-build" ] ; then
kak -n -E 'source rc/tree.kak ; set-option global tree_cmd "/tmp/kak-tree-bin/bin/kak-tree" ; set-option global tree_config rc/default_config.toml ; source kakrc.sample ; set-option global tree_log "test.log"' src/main.rs -e 'set buffer filetype rust'
else
nix build .#bin -o /tmp/kak-tree-bin -L
nix build .#kak-tree -o /tmp/kak-tree -L
kak -n -E 'source /tmp/kak-tree/share/kak/autoload/plugins/kak-tree/tree.kak ; source kakrc.sample ; set-option global tree_log "test.log"' src/main.rs -e 'set buffer filetype rust'
fi