# HG changeset patch # User Pascal Bellard # Date 1547457680 -3600 # Node ID 777a5f5107c735ffb2c0455d362e43b63d7a49a5 # Parent 69ad2183be35761cf3fbacc123f7a02170db2bf6 Update /etc/profile diff -r 69ad2183be35 -r 777a5f5107c7 rootfs/etc/profile --- a/rootfs/etc/profile Thu Mar 22 04:32:12 2018 +0200 +++ b/rootfs/etc/profile Mon Jan 14 10:21:20 2019 +0100 @@ -47,7 +47,7 @@ # Update X Terminal window title # -ip=$(ifconfig $(route -n 2>/dev/null | sed '$!d;s/.* //') 2>/dev/null | sed '/t a/!d;s/.*:\(.*\) B.*/\1/') +ip=$(ifconfig $(route -n 2>/dev/null | sed '/^0\.0\.0\.0/!d;s/.* //') 2>/dev/null | sed '/t a/!d;s/.*r:\([^ ]*\).*/\1/') case "$TERM" in xterm*|rxvt*) echo -ne "\033]0;$(hostname) $(cat /etc/slitaz-release) $ip \007";; esac @@ -77,3 +77,8 @@ popd() { [ -n "$_dirs" ] && _dirs="${_dirs#* }" && cd ${_dirs%% *} && dirs } + +command_not_found_handle() { + [ -x /bin/command_not_found ] && /bin/command_not_found "$@" || + echo "$SHELL: $1: not found" +}