2023-12-08 17:33:11 +01:00
|
|
|
#!/bin/bash
|
2024-05-19 20:50:12 +02:00
|
|
|
# shellcheck disable=SC1091
|
2023-12-08 17:33:11 +01:00
|
|
|
|
2024-05-11 15:44:55 +02:00
|
|
|
export WINEDEBUG=-all
|
2023-12-13 19:32:24 +01:00
|
|
|
export SDKMAN_DIR="$HOME/.sdkman"
|
|
|
|
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
2023-12-08 17:33:11 +01:00
|
|
|
source "/usr/share/icons-in-terminal/icons_bash.sh"
|
2024-05-01 18:06:10 +02:00
|
|
|
source /usr/share/nvm/init-nvm.sh
|
2024-05-11 15:45:24 +02:00
|
|
|
export PNPM_HOME="/home/jeremystartm/.local/share/pnpm"
|
|
|
|
case ":$PATH:" in
|
|
|
|
*":$PNPM_HOME:"*) ;;
|
|
|
|
*) export PATH="$PNPM_HOME:$PATH" ;;
|
|
|
|
esac
|
2023-12-08 17:33:11 +01:00
|
|
|
source "${HOME}/.jstmbash/init.source"
|
|
|
|
eval "$(starship init bash)"
|
|
|
|
alias "fireplace=$(which fireplace) -f 60 -t 13"
|
2024-03-30 00:34:50 +01:00
|
|
|
alias "quote=fortune -s linux debian|cowsay"
|
|
|
|
alias "besseretests=godot --headless -d -v -s --path . addons/besseretests/src/cmd.gd"
|
2024-03-30 22:32:04 +01:00
|
|
|
alias "besseretests-gui=godot -d -v -s --path . addons/besseretests/src/cmd.gd"
|
2024-04-19 21:15:47 +02:00
|
|
|
alias "rm=rm -ri"
|
2024-05-22 02:29:09 +02:00
|
|
|
alias "finfo=sudo cpupower frequency-info"
|
2024-05-19 17:37:02 +02:00
|
|
|
alias "fset=sudo cpupower frequency-set -g"
|
2024-04-19 21:16:01 +02:00
|
|
|
function osu-oszimport() {
|
|
|
|
if [ ! -f "${HOME}/.cache/osu.AppImage" ]; then
|
|
|
|
echo "--> Could not find ~/.cache/osu.AppImage"
|
|
|
|
echo " Please download and start osu! using osu!boot first."
|
|
|
|
else
|
|
|
|
for file in *.osz; do
|
|
|
|
if [ "${file}" == "*.osz" ]; then
|
|
|
|
echo "--> No .osz file has been found"
|
|
|
|
else
|
|
|
|
echo "--> Importing ${file}"
|
|
|
|
~/.cache/osu.AppImage "${file}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
2024-05-19 20:49:30 +02:00
|
|
|
function godot-setup() {
|
|
|
|
(
|
|
|
|
set -eo pipefail
|
|
|
|
if [ ! -f "project.godot" ]; then
|
|
|
|
echo ":: Error: No project.godot file was found."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$HELP" ]; then
|
|
|
|
echo ":: Available environment variables:"
|
|
|
|
echo " \$CORE_BRANCH=<develop|stable>"
|
|
|
|
echo " \$INSTALL_SUI=<false|true>"
|
|
|
|
echo " \$INSTALL_VENUS=<false|true>"
|
|
|
|
echo ""
|
|
|
|
echo ":: Note: The first listed value is the default"
|
|
|
|
echo " for that specific environment variable."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
if [ -z "$CORE_BRANCH" ]; then CORE_BRANCH=develop; fi
|
|
|
|
if [ -z "$INSTALL_SUI" ]; then INSTALL_SUI=false; fi
|
|
|
|
if [ -z "$INSTALL_VENUS" ]; then INSTALL_VENUS=false; fi
|
|
|
|
|
|
|
|
if [ ! -d ".git" ]; then
|
|
|
|
echo ":: Initializing git repository"
|
|
|
|
git init -b develop
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ":: Creating files"
|
|
|
|
wget -q --show-progress "https://www.gnu.org/licenses/agpl-3.0.txt" -O LICENSE
|
|
|
|
cat << EOF >> README.md
|
|
|
|
# New project
|
|
|
|
You need to fill this README.md out.
|
|
|
|
EOF
|
|
|
|
|
|
|
|
echo ":: Removing default icon"
|
|
|
|
rm -rf icon.png
|
|
|
|
|
|
|
|
echo ":: Creating directories"
|
|
|
|
mkdir -p src scenesrc assets/{images,sprites,music,sfx,fonts,themes} dist/submodules addons
|
|
|
|
|
|
|
|
echo ":: Installing CORE"
|
|
|
|
git submodule add https://git.staropensource.de/StarOpenSource/CORE-distrib-git.git dist/submodules/CORE
|
|
|
|
(
|
|
|
|
cd dist/submodules/CORE
|
|
|
|
git checkout "$CORE_BRANCH"
|
|
|
|
)
|
|
|
|
ln -s dist/submodules/CORE CORE
|
|
|
|
|
|
|
|
if [ "$INSTALL_SUI" == "true" ]; then
|
|
|
|
echo ":: Installing StarOpenSource UI"
|
|
|
|
git submodule add https://git.staropensource.de/StarOpenSource/SUI-distrib.git dist/submodules/SUI
|
|
|
|
ln -s ../dist/submodules/SUI addons/SUI
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$INSTALL_VENUS" == "true" ]; then
|
|
|
|
echo ":: Installing Venus"
|
|
|
|
git submodule add https://git.staropensource.de/StarOpenSource/venus.git dist/submodules/Venus
|
|
|
|
ln -s ../dist/submodules/Venus addons/venus
|
|
|
|
fi
|
|
|
|
)
|
|
|
|
}
|
2024-03-15 03:10:55 +01:00
|
|
|
export "RUSTFLAGS=-Z threads=$(nproc)"
|
2024-03-30 22:32:04 +01:00
|
|
|
export "EDITOR=nano"
|
2023-12-08 17:33:11 +01:00
|
|
|
function cleanhome() {
|
|
|
|
echo ":: Cleaning ~"
|
2024-06-01 19:00:58 +02:00
|
|
|
rm -rf "${HOME}/.dotnet" "${HOME}/.fltk" "${HOME}/.gradle" "${HOME}/.hyprland" \
|
|
|
|
"${HOME}/.java" "${HOME}/.npm" "${HOME}/.nuget" "${HOME}/.nvm" "${HOME}/.openjfx" \
|
|
|
|
"${HOME}/.pki" "${HOME}/.vnc" "${HOME}/.yarn" "${HOME}/go" "${HOME}/.lesshst" \
|
|
|
|
"${HOME}/.wget-hsts" "${HOME}/.yarnrc" "${HOME}/package-lock.json" "${HOME}/package.json" \
|
|
|
|
"${HOME}/node_modules" "${HOME}/.npmrc" "${HOME}/.gtkrc-2.0" "${HOME}/.electron-gyp" \
|
|
|
|
"${HOME}/.python_history" "${HOME}/.m2" "${HOME}/.mono" "${HOME}/.local/share/NuGet"
|
2023-12-08 17:33:11 +01:00
|
|
|
}
|
|
|
|
quote
|
2023-12-13 19:32:24 +01:00
|
|
|
env "BASHRC=true" dotfiles-updatechecker
|