Skip to content

Commit

Permalink
Add script for building for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGilchrist committed Dec 6, 2023
1 parent 5969901 commit 6497233
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions scripts/build-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
original_name=thefug
new_name=thefugbindev

cargo build

mv target/debug/$original_name target/debug/$new_name

echo "Dev build complete!"
echo "Set an alias to $(pwd)/target/debug/$new_name named $new_name to use it with the generated thefug script"
echo
echo "Example: alias $new_name='$(pwd)/target/debug/$new_name'"
6 changes: 3 additions & 3 deletions src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl Init {
"
#!/bin/bash
command=$(cargo run)
command=$(thefugbindev)
if [ \"$command\" = \"No fugs given.\" ]; then
echo \"$command\"
Expand All @@ -67,7 +67,7 @@ fi
"
#!/bin/fish
set command (cargo run)
set command (thefugbindev)
if \"$command\" = \"No fugs given.\"
echo \"$command\"
Expand All @@ -84,7 +84,7 @@ end
"
#!/bin/zsh
command=$(cargo run)
command=$(thefugbindev)
if [ \"$command\" = \"No fugs given.\" ]; then
echo \"$command\"
Expand Down

0 comments on commit 6497233

Please sign in to comment.