デフォルトのインストール状態では、HOMEは次の設定。
HOME=/home/kaiou (C:\cygwin\home\kaiou)
*"kaiou"はユーザー名
■2..bashrcのエディット
すでに.bashrcの雛型が生成されている。必要なところのコメントを外す。
alias等、私なんかが当然ほしくなるものは既に書いてくれている。
■3..baashrcに下記を追加
とっても便利。ネットでご教授頂いたもの。
TerminalからExplorerが起動できる。
e ()
{
if [ $# -eq 0 ]; then
target=.;
else
target=$1;
fi;
explorer_wrapper $target
}
eh ()
{
if [ $# -eq 0 ]; then
target=.;
else
target=$1;
fi;
explorer_wrapper $target '/e,'
}
er ()
{
if [ $# -eq 0 ]; then
target=.;
else
target=$1;
fi;
explorer_wrapper $target '/e,/root,'
}
explorer_wrapper ()
{
explorer $2$(cygpath -w -a $1)
}
profile_d ()
{
for file in $(export LC_COLLATE=C; echo /etc/profile.d/*.$1);
do
[ -e "${file}" ] && . "${file}";
done;
unset file
}
0 件のコメント:
コメントを投稿