From 81ffec122370238f6dba24b8aff46a0b5e226017 Mon Sep 17 00:00:00 2001 From: Qrakhen Date: Thu, 2 Apr 2026 22:00:55 +0200 Subject: [PATCH] add a few feetures --- install.sh | 3 +++ library/load.sh | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 36193d1..712c999 100755 --- a/install.sh +++ b/install.sh @@ -22,6 +22,8 @@ if [[ $REPLY == 'y' ]]; then mkdir -p "$dir/hooks" cp -r ./library/* $dir cp -r ./library/hooks/* $dir/hooks/ + echo "ps1='\e[m\e[1;32m\u\e[m\e[2;10m@\e[m\e[1;34m\h\e[m\e[2;10m:\e[m\e[1;37m\w\e[m \e[1;5;36m$\e[m'" >> $dir/config + echo "ps1.enable=1" >> $dir/config chmod 744 -R $dir/ echo "Backing up old .bashrc..." @@ -45,3 +47,4 @@ fi echo "Installation cancelled." exit 1 +export PS1="\e[m\e[1;32m\u\e[m\e[2;10m@\e[m\e[1;34m\h\e[m\e[2;10m:\e[m\e[1;37m\w\e[m \e[1;5;36m$\e[m " diff --git a/library/load.sh b/library/load.sh index 8cfd0b6..c4a7f20 100644 --- a/library/load.sh +++ b/library/load.sh @@ -5,12 +5,13 @@ export QASH_VERSION='v0.2.1' export QASH_ENABLE_DEADLINE_CHECK=1 export QASH_USE_BASH_COMPLETION=1 export QASH_LIBRARY_DIR="$LIBRARY_DIR" +export PS1="\e[1;32m\u\e[m\e[2;10m@\e[m\e[1;34m\h\e[m\e[2;10m:\e[m\e[1;37m\w\e[m \e[1;5;36m$\e[m " source "$LIBRARY_DIR/aliases.sh" source "$LIBRARY_DIR/qash.sh" if [[ $QASH_ENABLE_DEADLINE_CHECK == 1 ]]; then - $LIBRARY_DIR/deadline.listen.sh + # $LIBRARY_DIR/deadline.listen.sh echo "Enabled deadline check." fi @@ -19,4 +20,4 @@ if [[ -f ~/.bashrc.local ]]; then fi printf "\e[34mUptime: $(uptime)\n" -printf "\e[32mQrakhen's QASH %s loaded.\e[0m\n" $QASH_VERSION \ No newline at end of file +printf "\e[32mQrakhen's QASH %s loaded.\e[0m\n" $QASH_VERSION