mirror of
https://github.com/ashhhleyyy/fsh.git
synced 2024-10-05 01:37:45 +00:00
13 lines
409 B
Bash
Executable file
13 lines
409 B
Bash
Executable file
#!/bin/bash
|
|
echo Compiling with cargo...
|
|
cargo build --release
|
|
echo Copying to $HOME/.local/bin
|
|
cp target/release/fsh $HOME/.local/bin/
|
|
|
|
if [ ! -f $HOME/.config/fish/functions/fish_prompt.fish ]; then
|
|
echo "Creating $HOME/.config/fish/functions/fish_prompt.fish"
|
|
echo "function fish_prompt
|
|
set FSH_LAST_STATUS \$status
|
|
fsh \$LAST_STATUS
|
|
end" > $HOME/.config/fish/functions/fish_prompt.fish
|
|
fi
|