bash の変更点   

  • 追加された行はこの色です。
  • 削除された行はこの色です。
  • bash へ行く。

#author("2019-04-10T05:11:18+00:00","default:pentacle","pentacle")
* /etc/bashrc [#i9865a04]
 emacs /etc/bashrc

#pre{{ 
export PS1="\n<\u@\h>\n[\w]: "
export PATH=/usr/bin:/usr/local/bin:/sbin:/usr/sbin:$PATH:$HOME/bin

# primitive command
alias ls='ls -F'
alias .='cd `/bin/pwd`'
alias ..='cd `/bin/pwd`; cd ..'
alias rm='rm -f'
alias mv='mv -i'
alias pwd='/bin/pwd'
alias emacs='emacs -no-splash'
alias emasc='emacs -no-splash'
complete -d cd
function date2unix(){
  date +%s --date "$1 $2"
}
function unix2date(){
  date -d @$1 +'%Y/%m/%d %H:%M:%S'
}
export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8"

}}

* cygwin bash [#n6d4cf5d]
#pre{{
 function emacs(){
	/cygdrive/c/Program\ Files/xyzzy/xyzzy.exe `echo $1 | sed 's!^/!/cygwin/!' |sed 's!^~!/cygwin/home/【username】!'`  &
 }
 alias ifconfig='ipconfig /all |nkf -w'
 export PGHOST='localhost'
}}