Browse Source

Attempt to fix debug files

pull/181/head
Andrew Cantino 3 months ago
parent
commit
5058dae9c8
  1. 4
      dev.bash
  2. 4
      dev.fish
  3. 4
      dev.zsh

4
dev.bash

@ -6,11 +6,11 @@ if ! this_dir=$(cd "$(dirname "$0")" && pwd); then
fi
rm -f target/debug/mcfly
rm -rf target/debug/deps/mcfly-*
cargo build
# For some reason, to get line numbers in backtraces, we have to run the binary directly.
HISTFILE=$HOME/.bash_history \
MCFLY_PATH=$(find target/debug/deps/mcfly-* -maxdepth 1 -type f | grep -v '\.d') \
MCFLY_PATH=target/debug/mcfly \
RUST_BACKTRACE=full \
MCFLY_DEBUG=1 \
PATH=target/debug/:$PATH \
exec /bin/bash --init-file "$this_dir/mcfly.bash" -i

4
dev.fish

@ -7,11 +7,11 @@ this_dir=$(cd `dirname "$0"`; pwd)
mkdir -p $this_dir/.fish
rm -f target/debug/mcfly
rm -rf target/debug/deps/mcfly-*
cargo build
# For some reason, to get line numbers in backtraces, we have to run the binary directly.
XDG_DATA_HOME=$this_dir/.fish \
MCFLY_PATH=$(find target/debug/deps/mcfly-* -maxdepth 1 -type f | grep -v '\.d') \
MCFLY_PATH=target/debug/mcfly \
RUST_BACKTRACE=full \
MCFLY_DEBUG=1 \
PATH=target/debug/:$PATH \
exec /usr/bin/env fish -i --init-command "source $this_dir/mcfly.fish; and mcfly_key_bindings"

4
dev.zsh

@ -10,12 +10,12 @@ touch $this_dir/.zsh_history
echo "source ./mcfly.zsh" > $this_dir/.zshrc
rm -f target/debug/mcfly
rm -rf target/debug/deps/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=$(find target/debug/deps/mcfly-* -maxdepth 1 -type f | grep -v '\.d') \
MCFLY_PATH=target/debug/mcfly \
RUST_BACKTRACE=full \
MCFLY_DEBUG=1 \
ZDOTDIR="$this_dir" \
PATH=target/debug/:$PATH \
/bin/zsh -i
Loading…
Cancel
Save