LoginSignup
2
1

More than 5 years have passed since last update.

ターミナルを便利にする設定色々

Last updated at Posted at 2013-09-15

毎度忘れて調べたりするのでメモ。

  • 2015/12/18、ちょっと見にくかったので修正(追加なし)

タブ補完時に、大文字と小文字を見分けない

~/.inputrc
set completion-ignore-case on

rubygemsインストール時にrdocなどは追加しない

~/.gemrc
gem: --no-ri --no-rdoc

irbの日本語文字化けを直す

~/.bash_profile
alias irb="irb --noreadline"

gitのブランチ名を表示する

$ brew install git
~/.bash_profile
source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/etc/bash_completion.d/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1