diff options
author | LAN-TW <lantw44@gmail.com> | 2013-11-30 11:26:34 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2013-11-30 11:26:34 +0800 |
commit | dcab129e5ddf2e915e8c5e38cf484c1b4bf7ddae (patch) | |
tree | 3c39d7a13350db22db4acd55251c369bad2ffe0e | |
parent | 303248458bce04868a59ecfd92a0a1fae9badd0d (diff) | |
download | configfile-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
-rw-r--r-- | bash_include | 6 |
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 |