From 395aaede7d672ae5a61132e1cf2a5bce20f1c72a Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Fri, 22 Oct 2021 16:15:05 +0200 Subject: [PATCH] fixed few details in profile --- repo/common/profile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/repo/common/profile b/repo/common/profile index 74754d3..c79ff4c 100644 --- a/repo/common/profile +++ b/repo/common/profile @@ -27,7 +27,7 @@ # 24/10/2020 Version 2.6.0 : Added session save and restore for Konsole # 25/12/2020 Version 2.6.1 : Add check on rmhost, improvements rmspc, created expendlist # 26/02/2021 Version 2.6.2 : taz: corrected bug with trailing slash on directories -# 18/10/2021 Version 2.6.3 : changed PS1 for status bar style version +# 18/10/2021 Version 2.6.3 : changed PS1 for status bar style version # few minor improvements # ------------------------------------------------------------------------------ # Copyright (c) 2013-2020 Geoffray Levasseur @@ -343,13 +343,13 @@ ssr () ;; esac done - + [[ ! $1 ]] && echo "Please specify the server you want to log in." && return 1 - + local srv=$1 && shift - + ssh -Y root@$srv $@ } export ssr @@ -388,11 +388,11 @@ dpkgs () [[ $count -lt 1 ]] && echo "*** Error: Please specify a package name, without space, eventually partial." && return 1 - + [[ -x /usr/sbin/dpkg ]] && echo "*** Error: dpkg command seems unavialable." && return 2 - + dpkg -l | grep $pkg } export dpkgs @@ -505,7 +505,7 @@ rmspc () { [[ ! $substchar ]] && substchar="_" [[ $verb ]] && local mvopt="-v" - + for f in *\ *; do [[ $recurs ]] && [[ -d "$f" ]] && ( #[[ $verb ]] && echo "Entering directory $f ..." @@ -577,7 +577,7 @@ utaz() done [[ $createdir && $nodir ]] && echo "*** Error: --create-dir and --no-dir options are mutually exclusive." - + [[ ! $LIST ]] && local LIST="." for zitem in $LIST; do @@ -652,7 +652,7 @@ taz() xz $verb --compress --keep -$3 -T $2 $1 return $? } - + _dolz() { local procopt="--threads $2" @@ -700,7 +700,7 @@ taz() $command $verb $procopt --keep -$3 $1 return $? } - + _dobz2() { local procopt="-p$2" @@ -990,6 +990,9 @@ if [[ $INTERACTIVE ]]; then trap 'timer_start' DEBUG PROMPT_COMMAND='set_prompt' + # More colors + export TERM=xterm-256color + # Set default language setfr showinfo