resolver script
This commit is contained in:
parent
083338940d
commit
fb6ac24821
6
.zshrc
6
.zshrc
|
@ -19,7 +19,7 @@ export CLIPBOARD_NOGUI=1 # wayland only allows GUI apps to use the clipboard.
|
||||||
alias l="lsd -lah"
|
alias l="lsd -lah"
|
||||||
alias ll="lsd -lh"
|
alias ll="lsd -lh"
|
||||||
alias la="lsd -a"
|
alias la="lsd -a"
|
||||||
alias ls="ls"
|
alias ls="lsd"
|
||||||
alias grep="grep --color"
|
alias grep="grep --color"
|
||||||
alias egrep="grep -E"
|
alias egrep="grep -E"
|
||||||
alias lgrep="find | grep"
|
alias lgrep="find | grep"
|
||||||
|
@ -30,6 +30,7 @@ alias bat=batcat
|
||||||
alias reload="source ~/.zshrc"
|
alias reload="source ~/.zshrc"
|
||||||
alias gls=/bin/ls
|
alias gls=/bin/ls
|
||||||
alias gotemp="cd $(mktemp -d)"
|
alias gotemp="cd $(mktemp -d)"
|
||||||
|
alias dns=resolve
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
|
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
|
||||||
|
@ -42,6 +43,9 @@ function condac() {
|
||||||
conda activate $@
|
conda activate $@
|
||||||
export HOST=$(hostname)
|
export HOST=$(hostname)
|
||||||
}
|
}
|
||||||
|
function resolve() {
|
||||||
|
dig +short $@
|
||||||
|
}
|
||||||
|
|
||||||
### ---- zsh options -------------------------------------
|
### ---- zsh options -------------------------------------
|
||||||
setopt autocd
|
setopt autocd
|
||||||
|
|
Loading…
Reference in New Issue