Skip to content

Instantly share code, notes, and snippets.

@reiki4040
Created April 6, 2014 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reiki4040/10004006 to your computer and use it in GitHub Desktop.
Save reiki4040/10004006 to your computer and use it in GitHub Desktop.
.bashrc memo
# alias
alias ls='ls -G'
alias ll='ls -l'
alias la='ls -lA'
alias ..='cd ..'
alias grep='grep --color'
# git completion
if [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then
. /usr/local/etc/bash_completion.d/git-prompt.sh
fi
if [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
. /usr/local/etc/bash_completion.d/git-completion.bash
fi
# prompt message
# [hh:mm:ss] user@host:currentdir]$
# [12:22:33 user@hostname:~]$ command...
PS1='\[\033[01;32m\][\t \u@\h\[\033[00m\]:\[\033[01;34m\]\W$(__git_ps1)]\[\033[00m\]\$ '
# Env variable
export LANG=ja_JP.utf8
export LC_ALL='ja_JP.UTF-8'
export LC_MESSAGES='ja_JP.UTF-8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment