powershellのlsを色付けにした話
Powershellの各種コマンドをcoreutilsで置き換えてかなり満足だったが、lsの出力だけが気に食わない
この貧相っぷりである
↓
普通ls -F --color=auto
のaliasを作るのだが、Powershellではオプション付けてaliasにするのがめんどい
こんな風にしてうまくいった
function _ls() {
if ($args.Length -eq 0) {
uutils ls -F --color=auto
} else {
uutils ls -F --color=auto $args
}
}
Set-Alias ls _ls -Option AllScope
starshipでposh-gitを置き換えたい
starshipはたぶんすごく早いはずなので、今のposh-gitを置き換えたいと考えている
posh-gitのプロンプト
gitのステータスをもうちょっと細かく表示してくれるとうれしい