Last active
May 1, 2017 02:02
-
-
Save yusuiked/1626959 to your computer and use it in GitHub Desktop.
こっちはMacのbash用
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
# ls coloring and shortcut | |
alias ls='ls -G' | |
alias ll='ls -hl' | |
alias la='ls -a' | |
export CLICOLOR=1 | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
# less coloring settings | |
export LESS='-R' | |
export LESSOPEN='| /usr/local/bin/src-hilite-lesspipe.sh %s' | |
# Java | |
export _JAVA_OPTIONS='-Dfile.encoding=UTF-8' | |
# Groovy | |
export JAVA_OPTS='-Dgroovy.source.encoding=UTF-8' | |
#export JAVA_OPTS='-Dgroovy.source.encoding=UTF-8 -Dfile.encoding=UTF-8 # こっちは@uehajさん | |
#http://d.hatena.ne.jp/uehaj/20090815/1250316330 | |
PS1='\[\ek\e\\\][\u@\h \W]\$ ' | |
# 今使ってるのはこっちの設定、後で↑と取捨選択マージする。 | |
alias l.='ls -d .* -G' | |
alias ll='ls -l -G' | |
alias ls='ls -G' | |
alias la='ls -la -G' | |
alias diff=colordiff | |
alias screen='tscreen -U' | |
export CLICOLOR=1 | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
export GIT_PAGER='/usr/local/bin/lv -c -Au8' | |
# ↓ brew install source-highlight をインストールした後 | |
export LESS='-R' | |
export LESSOPEN='| /usr/local/bin/src-hilite-lesspipe.sh %s' | |
PS1='\[\ek\e\\\][\u@\h \W]\$ ' | |
# Git 用の設定 | |
# ↓ brew install bash-completion をインストールした後 | |
source /usr/local/etc/bash_completion.d/git-prompt.sh | |
source /usr/local/etc/bash_completion.d/git-completion.bash | |
GIT_PS1_SHOWDIRTYSTATE=true | |
# 前半はscreenのタブのタイトルに実行しているコマンドを表示する設定 | |
PS1='\[\ek\e\\\][\[\e[32m\]\u@\h \[\e[34m\]\w\[\e[31m\]$(__git_ps1)\[\e[00m\]]\$ ' | |
#PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment