Changeset 61 for trunk/bundle


Ignore:
Timestamp:
Feb 20, 2012, 2:44:02 PM (12 years ago)
Author:
g7moreau
Message:
  • Add short command avail -> av and the same for the orther
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bundle/bundle.bash

    r60 r61  
    44
    55   case "$1" in
    6       avail)
     6      av|avail)
    77         for d in ${folder}
    88         do
     
    1515         ;;
    1616
    17       load)
     17      lo|load)
    1818         pack=$(find ${folder} -type f -a -name "*.${ext}" -print0 2> /dev/null | grep -FzZ "/$2.${ext}" | head -n 1 )
    1919         if [ -f "${pack}" ]
     
    3939         ;;
    4040
    41       unload)
     41      un|unload)
    4242         if [ ${_bundle_level} > 0 ]
    4343         then
     
    4949         ;;
    5050
    51       show)
     51      sh|show)
    5252         pack=$(find ${folder} -type f -a -name "*.${ext}" -print0 2> /dev/null | grep -FzZ "/$2.${ext}" | head -n 1 )
    5353         if [ -f "${pack}" ]
     
    6060         ;;
    6161
    62       list)
     62      li|list)
    6363         if [ ${_bundle_level} > 0 ]
    6464         then
     
    6969         ;;
    7070
    71       status)
     71      st|status)
    7272         if [ ${_bundle_level} > 0 ]
    7373         then
     
    7878         ;;
    7979
    80       source)
     80      so|source)
    8181         pack=$(find ${folder} -type f -a -name "*.${ext}" -print0 2> /dev/null | grep -FzZ "/$2.${ext}" | head -n 1 )
    8282         if [ -f "${pack}" ]
     
    131131The arguments are quite the same.
    132132There is no magic done on the current environment variables
    133 and it's possible to export shell functions which is not possible width C<module>
    134133(remember, C<bundle> just source shell file).
    135134
     
    143142For the user point of vu, it's like there is only one shell!
    144143
    145 But be carrefull width variable,
     144But be carrefull with variable,
    146145only export variable could be use in sub-shell.
    147146
Note: See TracChangeset for help on using the changeset viewer.