bugfix: consider every X screen as a local connection, not only the first one
This commit is contained in:
parent
4ca0203a28
commit
871c38096d
@ -312,7 +312,7 @@ _lp_connection()
|
|||||||
else
|
else
|
||||||
# TODO check on *BSD
|
# TODO check on *BSD
|
||||||
local sess_src=$(who am i | sed -n 's/.*(\(.*\))/\1/p')
|
local sess_src=$(who am i | sed -n 's/.*(\(.*\))/\1/p')
|
||||||
if [[ -z "$sess_src" || "$sess_src" = :0.0 || "$sess_src" == :0 ]] ; then
|
if [[ -z "$sess_src" || "$sess_src" = ":"* ]] ; then
|
||||||
echo lcl # Local
|
echo lcl # Local
|
||||||
else
|
else
|
||||||
echo tel # Telnet
|
echo tel # Telnet
|
||||||
@ -345,7 +345,7 @@ tel)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Useless now, so undefine
|
# Useless now, so undefine
|
||||||
unset _lp_connection
|
# unset _lp_connection
|
||||||
|
|
||||||
|
|
||||||
# put an arrow if an http proxy is set
|
# put an arrow if an http proxy is set
|
||||||
|
Loading…
Reference in New Issue
Block a user