# precmd() call.
window_reset=yes
# Is set to a non empty value when the shell is running as root.
- if [[ $(id -u) -eq 0 ]]; then
+ if [[ $UID -eq 0 ]]; then
window_root=yes
fi
# If screen is running in SSH then display "@:hostname" as title
# in the term/outer screen.
if [[ $program_name == @screen ]]; then
- program_name="@:${$(hostname)//.*/}"
+ program_name="@:${HOST//.*/}"
# Use "@:!hostname" for root screens.
elif [[ $program_name == @!screen ]]; then
- program_name="@:!${$(hostname)//.*/}"
+ program_name="@:!${HOST//.*/}"
fi
fi
# OS SPECIFIC SETTINGS
-local uname=$(uname)
-
-if [[ $uname == Linux ]]; then
+if [[ $OSTYPE == linux* ]]; then
# Settings when creating Debian packages.
DEBEMAIL=simon@ruderich.org
export DEBEMAIL