]> Frank Brehm's Git Trees - config/lena/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Fri, 18 Nov 2016 05:25:01 +0000 (06:25 +0100)
committerFrank Brehm <frank@brehm-online.com>
Fri, 18 Nov 2016 05:25:01 +0000 (06:25 +0100)
profile.d/fbrehm.sh
skel/.bashrc

index 69a4f91ec55305e1df998e088fb9334d8c0f3cc0..9508d5505da64a2c3bb501990a663ae4a5f324da 100644 (file)
@@ -12,9 +12,6 @@ HISTCONTROL=ignoredups:ignorespace
 # append to the history file, don't overwrite it
 shopt -s histappend
 
-# coloring grep:
-#export GREP_OPTIONS='--color=auto'
-#export GREP_COLOR='1;32'
 # hold these special chars when piping to less
 export LESS="--RAW-CONTROL-CHARS"
 
@@ -124,6 +121,33 @@ if [[ -f ~/.bash_aliases ]]; then
     . ~/.bash_aliases
 fi
 
+if [ -d /usr/scripts ] ; then
+    PATH=/usr/scripts:$PATH
+    export PATH
+fi
+
+if [ -d $HOME/bin ] ; then
+    PATH=$PATH:$HOME/bin
+    export PATH
+fi
+
+if [[ -d "$HOME/lib" ]] ; then
+    if [[ -d "$HOME/lib/perl" ]] ; then
+        if [[ -z "${PERL5LIB}" ]] ; then
+            export PERL5LIB="$HOME/lib/perl"
+        else
+            export PERL5LIB="$HOME/lib/perl:${PERL5LIB}"
+        fi
+    fi
+    if [[ -d "$HOME/lib/python" ]] ; then
+        if [[ -z "${PYTHONPATH}" ]] ; then
+            export PYTHONPATH="$HOME/lib/python"
+        else
+            export PYTHONPATH="$HOME/lib/python:${PYTHONPATH}"
+        fi
+    fi
+fi
+
 # enable bash completion in interactive shells
 if ! shopt -oq posix; then
   if [[ -f /usr/share/bash-completion/bash_completion ]]; then
index f10e8e6a7807767b827b7c9e9f1cf4d4cb565ef4..6d42d5ff0c6b1c3cebb7d8f85e820d164a69c331 100644 (file)
@@ -8,11 +8,28 @@ case $- in
       *) return;;
 esac
 
-if [[ -f /etc/profile.d/fbrehm.sh ]] ; then
+# If set, the pattern "**" used in a pathname expansion context will
+# match all files and zero or more directories and subdirectories.
+#shopt -s globstar
 
-    if [[ $( type -t prompt_status || true ) != 'function' ]] ; then
-        . /etc/profile.d/fbrehm.sh
-    fi
+# make less more friendly for non-text input files, see lesspipe(1)
+#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
 
+# If this is an xterm set the title to user@host:dir
+#case "$TERM" in
+#xterm*|rxvt*)
+#    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
+#    ;;
+#*)
+#    ;;
+#esac
+
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
+if [ -f ~/.bash_aliases ]; then
+    . ~/.bash_aliases
 fi