aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-11-30 11:26:34 +0800
committerLAN-TW <lantw44@gmail.com>2013-11-30 11:26:34 +0800
commitdcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae (patch)
tree3c39d7a13350db22db4acd55251c369bad2ffe0e /bash_include
parent303248458bce04868a59ecfd92a0a1fae9badd0d (diff)
downloadconfigfile-dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae.tar
configfile-dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae.tar.gz
configfile-dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae.tar.bz2
configfile-dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae.tar.lz
configfile-dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae.tar.xz
configfile-dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae.tar.zst
configfile-dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae.zip
bash_include: 修正在 Cygwin 上顯示的終端機編號bash_include-20131130
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash_include b/bash_include
index 94be254..3b506f5 100644
--- a/bash_include
+++ b/bash_include
@@ -20,12 +20,12 @@ if [[ "$-" == *i* ]] ; then interactive_shell=1; fi
tty_short="#v${TTY:8}"
elif [[ "$TTY" == "/dev/tty"* ]]; then
tty_short="#${TTY:8}"
- elif [[ "$TTY" == "/dev/pts"* ]]; then
- tty_short="#p${TTY:9}"
elif [[ "$TTY" == "/dev/pty"* ]]; then
- tty_short="#p${TTY:9}"
+ tty_short="#p${TTY:8}"
elif [[ "$TTY" == "/dev/hvc"* ]]; then
tty_short="#h${TTY:8}"
+ elif [[ "$TTY" == "/dev/pts"* ]]; then
+ tty_short="#p${TTY:9}"
elif [[ "$TTY" == "/dev/console" ]]; then
tty_short="#c${TTY:12}"
else