From afaa7bcc5abf66b4d2e93132d2020677c4b20405 Mon Sep 17 00:00:00 2001 From: Tony Tkacik Date: Thu, 6 Oct 2016 12:55:46 +0200 Subject: [PATCH] #1 Detect checkout folder to NUX_ENV variable. Signed-off-by: Tony Tkacik --- bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bashrc b/bashrc index c3348cc..1f14f4b 100755 --- a/bashrc +++ b/bashrc @@ -90,6 +90,11 @@ alias l='ls -CF' # sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' + + +# nux-env install path detection +NUX_ENV=$(dirname $(realpath ${BASH_SOURCE[0]})) + # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly.