Skip to content

Instantly share code, notes, and snippets.

@yusuiked
Last active May 1, 2017 02:02
Show Gist options
  • Save yusuiked/1626959 to your computer and use it in GitHub Desktop.
Save yusuiked/1626959 to your computer and use it in GitHub Desktop.
こっちはMacのbash用
# 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