Use $HOSTNAME instead of $(hostname) in .bash*
This commit is contained in:
parent
724b92a586
commit
233680cd76
2 changed files with 4 additions and 4 deletions
|
@ -121,7 +121,7 @@ hash screen >/dev/null 2>&1 && {
|
|||
screen_attach
|
||||
|
||||
# Output some screen info.
|
||||
export SCREENDIR="$HOME/.screen-$(hostname --short)"
|
||||
export SCREENDIR="$HOME/.screen-${HOSTNAME%%.*}"
|
||||
if [[ ! -e ~/.hushlogin ]]; then
|
||||
if [[ ! -z "$STY" ]]; then
|
||||
echo "Screen $STY, window $WINDOW."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue