Skip to content

Instantly share code, notes, and snippets.

@Pafuxu
Created March 24, 2009 13:35
Show Gist options
  • Save Pafuxu/84084 to your computer and use it in GitHub Desktop.
Save Pafuxu/84084 to your computer and use it in GitHub Desktop.
### .bash_profile
# 日付を英語表記
#export LC_TIME=en_US.UTF-8
# サーチパス
export PATH=/opt/local/bin:/opt/local/sbin/:$PATH
export MANPATH=/opt/local/share/man:/opt/local/man:$MANPATH
# プロンプトデザイン
export PS1="\u@ \h: \w\n\$ "
export SUDO_PS1="\[\e[31m\]\u@\e[0m \h: \w\n\[\e[31m\]\\$\e[0m "
# 補完機能
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment