|
@@ -99,13 +99,14 @@ alias cdf='cd "$(fd -t d | fzf)"'
|
|
|
alias cdp='cd "$(fd -t d --full-path --maxdepth 3 /home/msc/projects | fzf)"'
|
|
|
# ipaddr
|
|
|
alias ipa='ip --brief --color add'
|
|
|
+alias ipr='ip -color --brief route'
|
|
|
|
|
|
# pipe into ccopy --> clipboard
|
|
|
alias ccopy='xclip -selection clipboard'
|
|
|
alias cpy='xclip -selection clipboard'
|
|
|
|
|
|
# IPS
|
|
|
-alias pubip="dig +short myip.opendns.com @resolver1.opendns.com"
|
|
|
+alias pubip="curl -s ipinfo.io | jq -r '.ip'"
|
|
|
alias localip="ip a | grep -Eo 'inet (addr:)?([0-9]*\\.){3}[0-9]*' | grep -Eo '([0-9]*\\.){3}[0-9]*' | grep -v '127.0.0.1'"
|
|
|
|
|
|
|