From 5dd0c868dcdfad7fb647f5d52ec3252671ebdc37 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 19 Apr 2024 21:16:01 +0200 Subject: [PATCH] Add osz import helper --- lone-files/bashrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lone-files/bashrc b/lone-files/bashrc index b597a209..c80489c7 100644 --- a/lone-files/bashrc +++ b/lone-files/bashrc @@ -10,6 +10,21 @@ alias "quote=fortune -s linux debian|cowsay" alias "besseretests=godot --headless -d -v -s --path . addons/besseretests/src/cmd.gd" alias "besseretests-gui=godot -d -v -s --path . addons/besseretests/src/cmd.gd" alias "rm=rm -ri" +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 +} export "RUSTFLAGS=-Z threads=$(nproc)" export "EDITOR=nano" function cleanhome() {