[Windows terminal] disable WSL terminal highlight and hide ntuser.dat

03 Oct
October 3, 2020

1 Edit .bashrc

bermmerb@Berm-PC:/mnt/c/Users/berm$ sudo vim ~/.bashrc

2 Put the scripts in the end of file.

LS_COLORS="ow=01;36;40" && export LS_COLORS
LS_COMMON="-hG"
LS_COMMON="$LS_COMMON --color=auto"
LS_COMMON="$LS_COMMON -I NTUSER.DAT* -I ntuser.dat*"
test -n "$LS_COMMON" &&
alias ls="command ls $LS_COMMON"
alias ll="ls -l"
alias la="ls -a"
alias lal="ll -a"

3 Restart terminal and done.

Tags: , ,
© Copyright - HHGG It's 42