alias を利用した小技

ls で日本語の文字を表示する

.bashrcに下記内容を記述

alias ls='ls --show-control-chars'

ls の出力に色を付ける

alias ls='ls --color=auto'

任意の場所でエクスプローラを開く

function explorer_wrapper {
    explorer $2$(cygpath -w -a $1)
};
function e {
    if [ $# -eq 0 ]; then
        target=.
    else
        target=$1
    fi
    explorer_wrapper $target
};
function eh {
    if [ $# -eq 0 ]; then
        target=.
    else
        target=$1
    fi
    explorer_wrapper $target '/e,'
};
function er {
    if [ $# -eq 0 ]; then
        target=.
    else
        target=$1
    fi
    explorer_wrapper $target '/e,/root,'
};

/Top/cygwintips/


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS