From 422a77a13bdaf1517299474f8b39a862b377e310 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 20 Feb 2023 11:04:35 -0600 Subject: [PATCH] add ccat alias to cat file without comments --- zsh/.zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index ea94d45..ef0090e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -15,6 +15,7 @@ alias sshpass="ssh -o PubkeyAuthentication=no" alias scppass="scp -o PubkeyAuthentication=no" alias k="kubectl" alias ll="ls -la" +alias ccat='egrep -v "^\s*(#|$)"' # Import local prefs from ~/.zshlocal, if present if [ -f $HOME/.zshlocal ]; then @@ -29,3 +30,4 @@ fi if type mcfly > /dev/null; then eval "$(mcfly init zsh)" fi +