-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_profile
86 lines (69 loc) · 2.15 KB
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# kuozumijp .bash_profile $Id$
#
# use zsh
ZSH=`grep \/zsh /etc/shells | grep -v '#' | tail -n 1`
if [ "${ZSH}" != "" -a -f ~/.zshrc ]; then
exec $ZSH
fi
SHELL=`which bash`
WORKING_DIRECTORY='\[\e[$[COLUMNS-$(echo -n " (\w)" | wc -c)]C\e[1;35m(\w)\e[0m\e[$[COLUMNS]D\]'
export PS1='\033k\033\\'${WORKING_DIRECTORY}'${debian_chroot:+($debian_chroot)}\[\033]2;[\h:\w] \u \007\]\[\e[0;33m\[\e[1;32m\][\u@\h]\[\e[00m\]\$ '
export PATH=$PATH:$HOME/bin
#デフォルトのエディタ
export EDITOR="vim"
# コマンドの履歴は500
export HISTSIZE="10000"
export HISTCONTROL=ignoredups
export HISTIGNORE="c:u:[bf]g:cd:date:df:top:ps*:l[ahlst]*:history*:less*:exit:pwd:whois*:git pull:git st:git b:git diff:git pr"
# ページャはless
export PAGER="less"
# lessコマンド使用時に下部にファイル名と行数を表示
export LESS='-X -i -P ?f%f:(stdin). ?lb%lb?L/%L.. [?eEOF:?pb%pb\%..].'
# パーミッション644でファイルを作成
umask 022
# CVS
export CVS_RSH="ssh"
export CVSEDITOR="vim"
# SVN
export SVN_EDITOR="vim"
export SVN_SSH="ssh"
export LS_COLORS="di=34:ln=35:so=32:ex=31:bd=46;34:cd=43;34:*.tar=31:*.gz=31:*.tgz=31:*.bz2=31:*.zip=31:*.sql=32:*.SQL=32':*.html=35:*.php=35"
export TERM="vt100"
if [ -f ~/.dircolors ]; then
if type dircolors > /dev/null 2>&1; then
eval $(dircolors ~/.dircolors)
elif type gdircolors > /dev/null 2>&1; then
eval $(gdircolors ~/.dircolors)
fi
fi
# aliaes
alias ll="ls -laF --color=auto"
alias la="ls -FCa --color=auto"
alias ls="ls -F --color=auto"
alias lt="ls -lt --color=auto"
alias rm="rm -i"
alias rmd="rm -ir"
alias vi="TERM=xterm-color vim"
alias vim="TERM=xterm-color vim"
alias make="gmake"
alias svn="env LANG=C svn"
if [ -x /usr/local/bin/rlwrap ]
then
alias sqlplus="rlwrap sqlplus /nolog"
else
alias sqlplus="sqlplus /nolog"
fi
alias bkup="tar cvf bkup_$(date +%Y%m%d%H%M%S).tar"
alias c="clear"
alias u="cd ../"
alias 755="chmod 755"
alias 600="chmod 600"
alias 604="chmod 604"
alias uname="uname -srm"
# backupfileを作成 usage : org ファイル名
org () { cp $1 ${1}.org ; }
# local settings
if [ -f ~/.bash_profile.local ]; then
source ~/.bash_profile.local
fi