Permalink
Browse files

add ~/[b]in/{*/,} to PATH... once

  • Loading branch information...
1 parent 387a63f commit 26d376fef18c5ffd46ce548341049f89fcb20286 C Anthony Risinger committed Jan 28, 2013
Showing with 14 additions and 4 deletions.
  1. +7 −2 .../self/data/profile/boot/bash
  2. +7 −2 .../self/data/profile/etc/bash/interactive
@@ -1,8 +1,13 @@
#!/bin/bash
-export PATH=~/bin:"$PATH"
-export ELLIPSIS=~/.../self/
+export PATH USERPATH ELLIPSIS
+PATH="${USERPATH:="$(
+ IFS=; shopt -s nullglob
+ x=(~/[b]in/{*/,})
+ echo -n "${x[*]/%?/:}"
+ )${PATH}"}"
+: ${ELLIPSIS:=~/.../self/}
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649456#27
export NSS_SSL_CBC_RANDOM_IV=0
@@ -1,8 +1,13 @@
#!/bin/bash
-export PATH=~/bin:"${PATH}"
-export ELLIPSIS=~/.../self/
+export PATH USERPATH ELLIPSIS
+PATH="${USERPATH:="$(
+ IFS=; shopt -s nullglob
+ x=(~/[b]in/{*/,})
+ echo -n "${x[*]/%?/:}"
+ )${PATH}"}"
+: ${ELLIPSIS:=~/.../self/}
export EDITOR='vim'
export BROWSER='chromium'

0 comments on commit 26d376f

Please sign in to comment.