From c7f6c0b7918c3a99c29ab0ba8fdae4b51076edf3 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 21 Feb 2026 06:50:48 -0500 Subject: [PATCH] Add Qt assistant bash helper. --- .bash_aliases | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index 4fbf4f7..8d9e89e 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -25,9 +25,16 @@ else alias ,plasmashell='plasmashell --replace &> /dev/null &' alias ,swap='sudo swapoff -a && sudo swapon -a' alias ,vbox="ps aux www |grep 'VBoxClient --draganddrop' | awk '{print $2}' | xargs kill" - alias ,assistant="nohup $HOME/Qt/6.9.0/gcc_64/bin/assistant > /dev/null 2>&1 &" fi +# $1: Version +# $2: Path to Qt; defaults to $HOME/Qt +function assistant { + local version=${1:-6\.7\.3} + local path=${2:-$HOME/Qt} + nohup ${path%/}/$version/gcc_64/bin/assistant > /dev/null 2>&1 & +} + # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'