From 38f93f29ff475e99542b5288077b0be509c01740 Mon Sep 17 00:00:00 2001 From: lub Date: Mon, 10 Oct 2022 13:55:55 +0200 Subject: [PATCH] add wcat function --- dotfiles/bash/.bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index dfbc5dc..adf0a45 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -41,6 +41,9 @@ alias pp='git pull -r && git push' alias statdiff='git status && git diff --staged' alias gcode='git pull -r && code . && exit' +function wcat { + cat "$(which -- "$1")" +} function wttr { curl -v "https://wttr.in/$1" }