Skip to content

Commit

Permalink
Attempt to fix debug files
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Aug 1, 2021
1 parent 36f8a00 commit 5058dae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dev.bash
Expand Up @@ -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 changes: 2 additions & 2 deletions dev.fish
Expand Up @@ -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 changes: 2 additions & 2 deletions dev.zsh
Expand Up @@ -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

0 comments on commit 5058dae

Please sign in to comment.