Skip to content

Commit 8fa76a8

Browse files
committed
Add myip function
Previously a myip script in grml-scripts. grml/grml-scripts#27
1 parent 8e27b92 commit 8fa76a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

etc/zsh/zshrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3443,6 +3443,11 @@ function _simple_extract () {
34433443
compdef _simple_extract simple-extract
34443444
[[ -n "$GRML_NO_SMALL_ALIASES" ]] || alias se=simple-extract
34453445

3446+
#f5# Show "public" IPv4 address of current system on stdout. Requires network access and curl(1).
3447+
function myip () {
3448+
curl http://v4.showip.spamt.net/ -H 'User-Agent: grml-etc-core-zshrc'
3449+
}
3450+
34463451
#f5# Change the xterm title from within GNU-screen
34473452
function xtrename () {
34483453
emulate -L zsh

0 commit comments

Comments
 (0)