From fb6ac24821dc8e591130844845b3fee1206fe7f1 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 27 Mar 2024 23:59:07 +0100 Subject: [PATCH] resolver script --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index dbae4c1..f5852d9 100644 --- a/.zshrc +++ b/.zshrc @@ -19,7 +19,7 @@ export CLIPBOARD_NOGUI=1 # wayland only allows GUI apps to use the clipboard. alias l="lsd -lah" alias ll="lsd -lh" alias la="lsd -a" -alias ls="ls" +alias ls="lsd" alias grep="grep --color" alias egrep="grep -E" alias lgrep="find | grep" @@ -30,6 +30,7 @@ alias bat=batcat alias reload="source ~/.zshrc" alias gls=/bin/ls alias gotemp="cd $(mktemp -d)" +alias dns=resolve ### Functions function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } @@ -42,6 +43,9 @@ function condac() { conda activate $@ export HOST=$(hostname) } +function resolve() { + dig +short $@ +} ### ---- zsh options ------------------------------------- setopt autocd