You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
607 B

# Build mcfly and run a dev environment zsh for local mcfly testing
this_dir=$(cd `dirname "$0"`; pwd)
# Setup for local testing.
touch $this_dir/.zsh_history
# Needed so that the test instance of zsh sources the local mcfly.zsh file on startup.
echo "source ./mcfly.zsh" > $this_dir/.zshrc
rm -f target/debug/mcfly
cargo build
# For some reason, to get line numbers in backtraces, we have to run the binary directly.
HISTFILE=$HOME/.zsh_history \
MCFLY_PATH=target/debug/mcfly \
ZDOTDIR="$this_dir" \
PATH=target/debug/:$PATH \
/bin/zsh -i