# ~/.bash_profile: executed by bash(1) for login shells. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package. # the default umask is set in /etc/login.defs #umask 022 # the rest of this file is commented out. # include .bashrc if it exists #if [ -f ~/.bashrc ]; then # source ~/.bashrc #fi # set PATH so it includes user's private bin if it exists #if [ -d ~/bin ] ; then # PATH=~/bin:"${PATH}" #fi # do the same with MANPATH #if [ -d ~/man ]; then # MANPATH=~/man:"${MANPATH}" #fi export HISTCONTROL=ignoredups export HISTFILESIZE=50000 export HISTSIZE=50000 export TEX=latex export JAVA_HOME=/usr/lib/j2se/1.4 export PATH=$JAVA_HOME/bin:$PATH export PATH=~/bin:$PATH export PS1="\[\033]0;\u@\h:\w\007\]\u:\w\\$ " #PS1="\u@\h:\w\\$ " alias which="type -path" alias where="type -all" alias ll="ls -l " #alias rm="rm -i" #alias mv="mv -i" #alias cp="cp -i" alias la="ls -la " alias ls="ls --color=never" sday() { date +%Y.%m.%d } sdate() { date +%Y.%m.%d.%H.%M.%S } function mkcd () { mkdir "$1" && cd "$1" } function rmcd () { cd .. && rmdir "${OLDPWD##*/}" } for a in `alias|grep color|cut -d= -f-1|cut -d' ' -f2-`;do unalias $a;done for a in `alias|grep '\-i'|cut -d= -f-1|cut -d' ' -f2-`;do unalias $a;done