2014-git-work/dotfiles/.bashrc

155 lines
3 KiB
Bash
Raw Normal View History

2012-08-28 23:46:41 +09:00
#if [ "$TERM" == "linux" ]; then
# LANG=C
#fi
2012-10-09 23:13:32 +09:00
#export LANG
2013-10-24 01:41:11 +09:00
PATH="~/Documents/bin:$PATH"
2013-02-20 21:48:59 +09:00
2012-08-28 23:46:41 +09:00
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=""
2012-10-09 23:13:32 +09:00
export PS1
export PS2
2012-08-28 23:46:41 +09:00
#PATH="/Applications/wxMaxima.app/bin:$PATH"
#PATH="/Applications/gnuplot.app/bin:$PATH"
2013-09-16 17:31:16 +09:00
#PATH="/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin:$PATH"
2012-10-09 23:13:32 +09:00
PATH=/opt/local/bin:/opt/local/sbin:$PATH
MANPATH=/opt/local/man:$MANPATH
export PATH
export MANPATH
export HISTSIZE=80000
export HISTFILESIZE=$((HISTSIZE*2))
2012-08-28 23:46:41 +09:00
export HISTCONTROL=ignoredups
export HISTTIMEFORMAT='%Y-%m-%d %T '
2012-10-09 23:13:32 +09:00
2013-02-23 06:58:43 +09:00
export TRASH="${HOME}/.Trash/"
2012-08-28 23:46:41 +09:00
#complete -c man sudo gksu
complete -c man sudo
2012-10-09 23:13:32 +09:00
2013-09-16 17:31:16 +09:00
set -o noclobber
2014-03-31 07:46:17 +09:00
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
2012-08-28 23:46:41 +09:00
alias ls='ls -G'
alias l='ls -alh'
2013-09-16 17:31:16 +09:00
alias cp='cp -iv'
alias mv='mv -iv'
alias ln='ln -iv'
alias rm='rm -iv'
2014-03-31 06:49:35 +09:00
alias mkdir='mkdir -v'
2012-08-28 23:46:41 +09:00
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
2012-10-05 21:19:04 +09:00
#alias rm='gmv -f --backup=numbered --target-directory ~/.Trash'
2013-02-20 21:48:59 +09:00
#alias rm='mv -f --target-directory ~/.Trash'
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"