$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/*
したら直った。
2013年7月21日日曜日
2011年7月7日木曜日
macでgitインストール〜設定
http://git-scm.com/download
http://code.google.com/p/git-osx-installer/downloads/list?can=3
git-1.7.5.4-i386-leopard.dmg
をダウンロード&インストール。
~/.bashrc
に下記を追記することでgitコマンドのタブ補完と、
現在向けているブランチのプロンプト表示ができる。
{{{
# git
source /usr/local/git/contrib/completion/git-completion.bash
if [ -r "/usr/local/git/contrib/completion/git-completion.bash" ]; then
PS1="[\u@\h \w\[\033[1m\]\$(__git_ps1 \" %s\")\[\033[0m\]]\\$ "
else
:
fi
}}}
http://code.google.com/p/git-osx-installer/downloads/list?can=3
git-1.7.5.4-i386-leopard.dmg
をダウンロード&インストール。
~/.bashrc
に下記を追記することでgitコマンドのタブ補完と、
現在向けているブランチのプロンプト表示ができる。
{{{
# git
source /usr/local/git/contrib/completion/git-completion.bash
if [ -r "/usr/local/git/contrib/completion/git-completion.bash" ]; then
PS1="[\u@\h \w\[\033[1m\]\$(__git_ps1 \" %s\")\[\033[0m\]]\\$ "
else
:
fi
}}}
2011年4月10日日曜日
macの.bashrc
macの~/.bashrcは単体では読み込まれないらしい。
~/.bash_profileというファイルを作り、そこから参照することで読み込まれる。
▼例:svn用エディタ指定
{{{
$ cat .bash_profile
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
$ cat .bashrc
export SVN_EDITOR=/usr/bin/vi
$
}}}
~/.bash_profileというファイルを作り、そこから参照することで読み込まれる。
▼例:svn用エディタ指定
{{{
$ cat .bash_profile
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
$ cat .bashrc
export SVN_EDITOR=/usr/bin/vi
$
}}}
登録:
投稿 (Atom)