resolver script

This commit is contained in:
Christoph J. Scherr 2024-03-27 23:59:07 +01:00
parent 083338940d
commit fb6ac24821
1 changed files with 5 additions and 1 deletions

6
.zshrc
View File

@ -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