Pārlūkot izejas kodu

use commands instead of environment variable to get user and host name

pull/1/head
10sr pirms 10 gadiem
vecāks
revīzija
6322791742
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      shrc

+ 2
- 2
shrc Parādīt failu

@@ -1264,13 +1264,13 @@ case "$TERM" in
screen*)
if test -n "$SSH_CONNECTION"
then
__terminal_title="\${USER}@\${HOSTNAME}:\$(basename \${PWD})"
__terminal_title="`whoami`@`hostname`:\$(basename \${PWD})"
else
__terminal_title="\$(basename \${PWD})"
fi
;;
*)
__terminal_title="\${USER}@\${HOSTNAME}:\${PWD}"
__terminal_title="`whoami`@`hostname`:\${PWD}"
;;
esac



Notiek ielāde…
Atcelt
Saglabāt