From 63ebd6df4756eb7fd3068d0c363bed0dc388235b Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 5 Dec 2023 03:09:57 +0200 Subject: [PATCH] chore(config): alias cleanup and rename ip --- config/alias | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/config/alias b/config/alias index 7c89ba1..08ca6ba 100755 --- a/config/alias +++ b/config/alias @@ -2,9 +2,6 @@ # shellcheck source="../scripts/shared.sh" # shellcheck disable=1091,2139 -# Be nice -alias please="sudo " - # Color the grep output alias grep="grep --color" @@ -32,7 +29,7 @@ alias sl="ls" alias lsd="ls -lF | grep '^d'" # IP addresses -alias ip="dig +short myip.opendns.com @resolver1.opendns.com" +alias x-ip="dig +short myip.opendns.com @resolver1.opendns.com" alias localip="ipconfig getifaddr en1" alias ips="ifconfig -a | grep -o 'inet6\? \(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)\|[a-fA-F0-9:]\+\)' | sed -e 's/inet6* //'" @@ -49,9 +46,6 @@ alias flush="dscacheutil -flushcache" # Update locatedb alias updatedb="sudo /usr/libexec/locate.updatedb" -# Always return full history -alias history="history 1" - # tmux: automatically attach or create session with name 'main' alias tmux='tmux new-session -A -s main' # tmux: attach or create new session @@ -134,12 +128,6 @@ ssh-docker() docker exec -it "$@" bash } -# All the dig info -digga() -{ - dig +nocmd "$1" any +multiline +noall +answer -} - # Rector project to php version 8.2 by default. rector() {