From 43f3ee0af078f30a021215edbadbb404358570aa Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 28 Sep 2019 14:58:55 +0400 Subject: [PATCH] PATH loaded from /opt/debian-*/tools --- bash.bashrc | 11 +++++------ install.sh | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bash.bashrc b/bash.bashrc index ff3567e..177f66a 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -141,7 +141,7 @@ DEBIAN_BASH_DIR=/opt/debian-bash alias ls='ls $COLOR_OPTIONS' alias ll='ls $COLOR_OPTIONS -l' alias lh='ls $COLOR_OPTIONS -lh' -alias la='ls $COLOR_OPTIONS -lA' +alias la='ls $COLOR_OPTIONS -la' alias ltr='ls $COLOR_OPTIONS -ltrh' alias l=ls @@ -161,8 +161,7 @@ if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi -PATH=$PATH:/opt/debian-bash/tools - -if [ -d /opt/debian-server ]; then - PATH=$PATH:/opt/debian-server/tools -fi +# Add path to any tools folder in /opt/debian-* +for i in /opt/debian-*/tools; do + PATH=$PATH:$i +done diff --git a/install.sh b/install.sh index 1afa413..6baefcc 100755 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ BASEDIR=$PWD if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then - # download and filfull /etc/debian-bash, then run it from folder + # download and filfull /opt/debian-bash, then run it from folder rm -rf /opt/debian-bash TEMP=`mktemp -d`