Created
May 24, 2015 12:29
-
-
Save mkacky/4eeec4b23ac6f1e07921 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## .bashrc by tani.masaru | |
# 新しく作られたファイルのパーミッションを644をデフォルトにする | |
umask 022 | |
# coreファイルを作らないようにする | |
ulimit -c 0 | |
## シェル変数 | |
# プロンプト文字列の設定 | |
#PS1="\n\d \t \n\[\e[1;33m\]\w\[\e[m\]\n\[\e[32m\]\u@\h\[\e[m\]:\$ " | |
PS1="\n\d \t \n\[\e[1;33m\]\w\[\e[00m\]\n\[\e[32m\]\u@\h\[\e[00m\]:\$ " | |
# コマンド履歴のサイズ | |
HISTSIZE=50000 | |
HISTFILESIZE=50000 | |
export HISTCONTROL=ignoreboth | |
export HISTIGNORE="fg*:bg*:history*:cd*:ls*:ll*:pwd" | |
## 環境変数 | |
# 日本語文字コードの指定 | |
#export LANG=ja_JP.UTF-8 | |
export LANG=C | |
#export LC_ALL= LC_TIME=C LC_MESSAGES=C gkrellm2 | |
#export OUTPUT_CHARSET=sjis | |
# デフォルトのページャをlessにする | |
export PAGER=less | |
# lessのステータス行にファイル名と行数、%を表示する | |
export LESS='-X -r -i -P ?f%f:(stdin). ?lb%lb?L/%L.. [?eEOF:?pb%pb\%..]' | |
# lessの文字コードを指定する | |
#export JLESSCHARSET=japanese-sjis | |
# DISPLAY変数を指定する | |
if [ -n ${DISPLAY} ]; then | |
export DISPLAY=localhost:0.0 | |
fi | |
# TERM変数を指定する | |
if [ ! -n "${TERM}" ]; then | |
export TERM=cygwin | |
fi | |
#ln -s /cygdrive/c/Python27/python.exe /usr/bin/python | |
export PATH=/bin:/usr/bin:$HOME/bin:$PATH | |
#export PATH=/cygdrive/c/Python27:$PATH | |
## Alias 一覧 | |
# ls の8ビット透過にする | |
alias ls='ls -F --show-control-chars --color=auto' | |
alias ll='ls -l' | |
# updatedbでwindows領域を除外する | |
alias updatedb='updatedb --localpaths="/bin /dev /etc /home /lib /sbin /srv /usr /var" --prunepaths="/usr/tmp /var/tmp"' | |
alias grep='grep --color=auto' | |
alias nkfU='nkf -wLu --overwrite' | |
if [ -n "$force_color_prompt" ]; then | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
# We have color support; assume it's compliant with Ecma-48 | |
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such | |
# a case would tend to support setf rather than setaf.) | |
color_prompt=yes | |
else | |
color_prompt= | |
fi | |
fi | |
unset color_prompt force_color_prompt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment