zsh: Make 'nocomment' alias filter comments with prefixed whitespaces
This commit is contained in:
parent
65c1ef4616
commit
4638e90a7d
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ alias l.='exa --all --list-dirs --long --color=always --group-directories-first
|
|||
|
||||
## 'grep' to 'rg' -> 'ripgrep'
|
||||
alias grep='rg'
|
||||
alias nocomment="rg --invert-match '''^(#|$)'''"
|
||||
alias nocomment="rg --invert-match '''^\s*(#|$)'''"
|
||||
|
||||
## 'cat' to 'bat'
|
||||
alias cat='bat'
|
||||
|
|
Loading…
Add table
Reference in a new issue