- check for projets on my OSX folder,
- fix listing projects when there are none yet, don't use ls|sed, - don't use source as it's bash specific, and test if the .profile exists, avoids a warning when bootstrapping a project, - add vim as a fallback $EDITOR. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34523 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4dc69971bc
commit
fa66a805cc
10
3rdparty/mmu_man/scripts/dev-perso
vendored
10
3rdparty/mmu_man/scripts/dev-perso
vendored
@ -51,7 +51,7 @@
|
||||
|
||||
|
||||
# automagically find them on different machines...
|
||||
DRLIST="/Data /work $HOME/devel"
|
||||
DRLIST="$HOME/devel /Data /work /Volumes/Data/devel"
|
||||
PWLIST="/Data /fat32 $HOME"
|
||||
for d in $DRLIST; do
|
||||
test -d $d && DEVROOT=$d && break;
|
||||
@ -67,7 +67,8 @@ export PASSWDS
|
||||
|
||||
function dev() {
|
||||
if [ $# -lt 1 ]; then
|
||||
ls $DEVROOT/*/.profile | sed 's,.*/\([^/]*\)/.profile,\1,'
|
||||
#ls $DEVROOT/*/.profile | sed 's,.*/\([^/]*\)/.profile,\1,'
|
||||
for f in "$DEVROOT/"*; do test -e "$f/.profile" || continue; echo ${f##*/}; done
|
||||
return 0
|
||||
fi
|
||||
if [ "x$1" = "x--help" ]; then
|
||||
@ -116,7 +117,10 @@ function dev() {
|
||||
esac
|
||||
|
||||
# source the specific profile file
|
||||
source .profile
|
||||
test -f .profile && . .profile
|
||||
|
||||
# if no editor defined, set one
|
||||
test -z "$EDITOR" -a -z "$SVN_EDITOR" && export EDITOR=vim
|
||||
|
||||
# make sure the update action is the first found in history.
|
||||
test -d .svn && history -s svn up
|
||||
|
Loading…
x
Reference in New Issue
Block a user