From 7349042f970fe80976933e57d27949f339ff09e8 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Wed, 24 May 2023 17:10:07 +0200 Subject: [PATCH] Update '.general.rc' --- .general.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.general.rc b/.general.rc index e4d6629..00eae75 100644 --- a/.general.rc +++ b/.general.rc @@ -1,4 +1,10 @@ bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word +if ! command -v bat &> /dev/null; then + alias myip="curl https://ipinfo.io/json 2> /dev/null | bat -l JSON --file-name=https://ipinfo.io/json -p --paging=never" +else + alias myip="curl https://ipinfo.io/json 2> /dev/null" +fi + alias ip='ip -c' \ No newline at end of file