diff --git a/.config/oh-my-zsh/aliases.zsh b/.config/oh-my-zsh/aliases.zsh index c061d2b..0a23c87 100644 --- a/.config/oh-my-zsh/aliases.zsh +++ b/.config/oh-my-zsh/aliases.zsh @@ -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'