Skip to content

Commit a35bc1d

Browse files
committed
added ripgrep aliases, WSL specific LS_COLORS
1 parent ae8bc81 commit a35bc1d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.readable.bashrc

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ alias ......="cd ../../../../.."
4848
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
4949
#PS1='\u@\h:\w\$ '
5050

51+
# https://github.com/Microsoft/vscode/issues/7556 for WSL colors
52+
# see https://stackoverflow.com/a/43618657/198348
53+
grep -qEi "(Microsoft|WSL)" /proc/version && LS_COLORS="ow=01;36;40" && export LS_COLORS
54+
5155
# https://github.com/clvv/fasd/wiki/Installing-via-Package-Managers
5256
test -x "$(command -v fasd)" && eval "$(fasd --init auto)"
5357
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)"
@@ -59,6 +63,8 @@ alias ls="ls --human-readable --group-directories-first --sort=extension --color
5963
rgl() { rg -i -p -M 500 "$@" | less -XFR; }
6064
rgf() { rg --files | rg -i -p -M 500 "$@" | less -XFR; }
6165
rglc() { rg -i -p -M 500 --type csharp "$@" | less -XFR; }
66+
rglt() { rg -i -p -M 500 --type ts "$@" | less -XFR; }
67+
rglweb() { rg -i -p -M 500 --type-add 'web:*.{htm,html,css,sass,less,js,jsx,ts,tsx}' --type web "$@" | less -XFR; }
6268

6369
# https://github.com/junegunn/fzf#respecting-gitignore
6470
export FZF_DEFAULT_COMMAND='

0 commit comments

Comments
 (0)