Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (33 sloc) 1.02 KB
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
# Tell the terminal about the working directory at each prompt.
if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then
update_terminal_cwd() {
# Identify the directory using a "file:" scheme URL,
# including the host name to disambiguate local vs.
# remote connections. Percent-escape spaces.
local SEARCH=' '
local REPLACE='%20'
printf '\e]7;%s\a' "$PWD_URL"
PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND"
# alias
alias where="command -v"
alias j="jobs -l"
alias ls="ls --color"
alias lla="ls -al"
alias la="ls -a"
alias lf="ls -F"
alias ll="ls -l"
alias du="du -h"
alias df="df -h"
alias su="su -l"
# added by travis gem
[ -f /Users/nakajijapan/.travis/ ] && source /Users/nakajijapan/.travis/