_bash_profile_addpath -f PATH "$HOME/sbin"
_bash_profile_addpath -f LD_LIBRARY_PATH "$HOME/lib"
_bash_profile_addpath -f MANPATH "$HOME/man"
_bash_profile_addpath -f PATH "$HOME/sbin"
_bash_profile_addpath -f LD_LIBRARY_PATH "$HOME/lib"
_bash_profile_addpath -f MANPATH "$HOME/man"
_bash_profile_addpath -f -s CVSROOT "short@vellum.cz:/home/short/pserver/cvs" # default
_bash_profile_addpath -s CVSROOT "$HOME/pserver/cvs"
_bash_profile_addpath -s CVSROOT "$HOME/cvs"
mkdir -p $HOME/lib/perl5 # otherwise CPAN will install to "$HOME/lib/site_perl" etc.
_bash_profile_addpath -f -s CVSROOT "short@vellum.cz:/home/short/pserver/cvs" # default
_bash_profile_addpath -s CVSROOT "$HOME/pserver/cvs"
_bash_profile_addpath -s CVSROOT "$HOME/cvs"
mkdir -p $HOME/lib/perl5 # otherwise CPAN will install to "$HOME/lib/site_perl" etc.
export PERL_MM_OPT="PERL=$HOME/bin/perlilib PREFIX=$HOME"
export WWW_HOME="file:///home/short/.bookmarks.html"
export GREP_OPTIONS="--binary-files=without-match --directories=skip"
export PERL_MM_OPT="PERL=$HOME/bin/perlilib PREFIX=$HOME"
export WWW_HOME="file:///home/short/.bookmarks.html"
export GREP_OPTIONS="--binary-files=without-match --directories=skip"
-[ -n "$PS1" ] && export PS1='\[\017\]'"$PS1" # set only in interactive sessions
+if [ -n "$PS1" ];then # set only in interactive sessions
+ # kbd_mode -u # utf-8
+ # export PS1='\[\017\033%G\]'"$PS1" # \017=std charmap, \033%G=utf-8
+ export PS1='\[\017\]'"$PS1" # \017=std charmap
+ fi
function cvsupdatei { cvs update "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsupdatei
function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export -f wclines
function cvsupdatei { cvs update "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsupdatei
function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export -f wclines
-function ulimitme { ulimit -m 100000 -d 150000 -v 200000; }; export -f ulimitme
+# SunOS does not support "-m"
+export ULIMITME_OPTS=""
+for i in "-m 100000" "-d 150000" "-v 200000";do
+ ulimit $i 2>/dev/null && ULIMITME_OPTS="$ULIMITME_OPTS $i"
+ done
+function ulimitme { ulimit $ULIMITME_OPTS; }; export -f ulimitme
function grep {(unset grep; ( ulimitme; grep "$@"; ); );}; export -f grep
function finame { find . -false `
awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@";
function grep {(unset grep; ( ulimitme; grep "$@"; ); );}; export -f grep
function finame { find . -false `
awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@";
set -ex;cd "$1";while true;do test "$PWD" != "/";if [ -e configure.in -o -e Makefile.PL ];then break;fi;cd ..;done;make install;
); };export -f mi
function ctags {(unset ctags;
set -ex;cd "$1";while true;do test "$PWD" != "/";if [ -e configure.in -o -e Makefile.PL ];then break;fi;cd ..;done;make install;
); };export -f mi
function ctags {(unset ctags;
- if [ $# != 0 ];then ctags "$@";else
- find -type f -a '(' -name "*.[chC]" -o -name "*.cc" -o -name "*.java" ')'|ctags --file-tags -L -
+ if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
+ find -type f -a '(' -false \
+ -o -name "*.[chC]" \
+ -o -name "*.cc" \
+ -o -name "*.java" \
+ -o -name "*.p[lm]" \
+ ')' \
+ |ctags --file-tags -L - "$@"