# ~/.profile: executed by Bourne-compatible login shells. # Hacked by jimc for Maemo-2.0, for the generic ordinary user. # .bashrc is a symlink to this file. # Copyright (c) 2006 by James F. Carter (jimc@math.ucla.edu> # 2006-08-27, for Maemo-2.0 (Nokia 770) # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You can find the GNU General Public License in your Maemo distribution # as /usr/share/common-licenses/GPL-2; if it's missing, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307, USA. if [ -z "$HOSTNAME" ] ; then HOSTNAME=`uname -n` export HOSTNAME fi # Specific to bash. When invoked as a login shell, it sources /etc/profile # and (~/.bash_profile ~/.bash_login ~/.profile) (first to exist). On exit # it sources ~/.bash_logout if existing. # When interactive but not login, it sources ~/.bashrc if existing. # When neither interactive nor login, it sources $BASH_ENV if set. # "Traditional" behavior is the same excluding ~/.bash*; ash does this too. # With --posix, an interactive shell sources $ENV if set, and nothing else. # I exec bash as interactive but not login. if expr "$-" : ".*i" > /dev/null ; then if [ -n "$BASH" ] ; then PS1="[\u \h \w \!] " # Interactive bash, set prompt set -b # Report finished bkgd jobs immediately elif which bash > /dev/null ; then exec bash -i "$@" # Inter, not bash, it's available else PS1="[root $HOSTNAME] " # Inter, bash unavail, set ash prompt fi fi # /etc/profile sets the path to /usr/bin:/bin # The default path for users ends up as # /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin # For root it is # /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin # Neither /usr/X11R6/{bin,lib} nor /usr/{bin,lib}/X11 exist; the X-windows # stuff is in /usr/{bin,lib}. Hiss, boo. # Supplement the path. The units must be listed in reverse order. for unit in /usr/local/bin /home/jimc/bin ; do if expr ":$PATH:" : ".*:$unit:" > /dev/null ; then : ; else PATH=$unit:$PATH fi done export PATH umask 022 mesg n HISTSIZE=60 HISTFILE= LESS=cdiM export LESS j=/tmp/jimc.junk mkdir -p $j # You may uncomment the following lines if you want `ls' to be colorized: # No you can't, the stupid busybox "ls" doesn't do colors, hiss, boo. # export LS_OPTIONS='--color=auto' # eval `dircolors` # alias ls='ls $LS_OPTIONS' # alias ll='ls $LS_OPTIONS -l' # alias l='ls $LS_OPTIONS -lA'