2014-git-work/dotfiles/.bashrc
2014-03-31 07:46:17 +09:00

154 lines
3 KiB
Bash

#if [ "$TERM" == "linux" ]; then
# LANG=C
#fi
#export LANG
PATH="~/Documents/bin:$PATH"
PS1='\[\e[1;32m\]\D{%F %T}\[\e[0m\] \[\e[1;34m\]\w\[\e[0;1m\]
\$ \[\e[0m\]'
#if [ "$TERM" == "xterm" ]; then
# PS1='\[\e]2;\w\a\e[1;32m\]\D{%F %T}\[\e[0m\] \[\e[1;34m\]\w\[\e[0;1m\]
#\$ \[\e[0m\]'
#fi
PS2=""
export PS1
export PS2
#PATH="/Applications/wxMaxima.app/bin:$PATH"
#PATH="/Applications/gnuplot.app/bin:$PATH"
#PATH="/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin:$PATH"
PATH=/opt/local/bin:/opt/local/sbin:$PATH
MANPATH=/opt/local/man:$MANPATH
export PATH
export MANPATH
export HISTSIZE=80000
export HISTFILESIZE=$((HISTSIZE*2))
export HISTCONTROL=ignoredups
export HISTTIMEFORMAT='%Y-%m-%d %T '
export TRASH="${HOME}/.Trash/"
#complete -c man sudo gksu
complete -c man sudo
set -o noclobber
alias base64=gbase64
alias basename=gbasename
alias cat=gcat
alias chgrp=gchgrp
alias chmod=gchmod
alias chown=gchown
alias chroot=gchroot
alias cksum=gcksum
alias comm=gcomm
alias cp=gcp
alias csplit=gcsplit
alias cut=gcut
alias date=gdate
alias dd=gdd
alias df=gdf
alias dir=gdir
alias dircolors=gdircolors
alias dirname=gdirname
alias du=gdu
alias echo=gecho
alias env=genv
alias expand=gexpand
alias expr=gexpr
alias factor=gfactor
alias false=gfalse
alias fmt=gfmt
alias fold=gfold
alias groups=ggroups
alias head=ghead
alias hostid=ghostid
alias hostname=ghostname
alias id=gid
alias install=ginstall
alias join=gjoin
alias kill=gkill
alias link=glink
alias ln=gln
alias logname=glogname
alias ls='gls -F'
alias md5sum=gmd5sum
alias mkdir=gmkdir
alias mkfifo=gmkfifo
alias mknod=gmknod
alias mv=gmv
alias nice=gnice
alias nl=gnl
alias nohup=gnohup
alias od=god
alias paste=gpaste
alias pathchk=gpathchk
alias pinky=gpinky
alias pr=gpr
alias printenv=gprintenv
alias printf=gprintf
alias ptx=gptx
alias pwd=gpwd
alias readlink=greadlink
alias rm=grm
alias rmdir=grmdir
alias seq=gseq
alias sha1sum=gsha1sum
alias sha224sum=gsha224sum
alias sha256sum=gsha256sum
alias sha384sum=gsha384sum
alias sha512sum=gsha512sum
alias shred=gshred
alias shuf=gshuf
alias sleep=gsleep
alias sort=gsort
alias split=gsplit
alias stat=gstat
alias stty=gstty
alias su=gsu
alias sum=gsum
alias sync=gsync
alias tac=gtac
alias tail=gtail
alias tee=gtee
alias test=gtest
alias touch=gtouch
alias tr=gtr
alias true=gtrue
alias tsort=gtsort
alias tty=gtty
alias uname=guname
alias unexpand=gunexpand
alias uniq=guniq
alias unlink=gunlink
alias uptime=guptime
alias users=gusers
alias vdir=gvdir
alias wc=gwc
alias who=gwho
alias whoami=gwhoami
alias yes=gyes
alias ls='ls -G'
alias l='ls -alh'
alias cp='cp -iv'
alias mv='mv -iv'
alias ln='ln -iv'
alias rm='rm -iv'
alias mkdir='mkdir -v'
alias grep='grep --color'
alias egrep='egrep --color'
alias bc='bc -l'
alias c=cat
alias e=echo
alias g=grep
alias f=find
#alias o=xdg-open
alias o=open
#alias d=gvfs-trash
#alias rm='gmv -f --backup=numbered --target-directory ~/.Trash'
#alias rm='mv -f --target-directory ~/.Trash'
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"