繁體中文 Solaris 使用者指南

使用別名設定語言環境

您可以使用別名變更終端機視窗中的語言環境,而不用鍵入冗長指令,也不用每次都編輯 .dtlogin 檔案並執行 source 指令。

如何設定 Korn Shell 的語言環境別名

    如下所示,在 .profile 檔中放入別名。


    alias twn_EUC "export LANG=zh_TW; /bin/stty cs8 -istrip defeucw"
    alias twn_BIG5 "export LANG=zh_TW.BIG5; /bin/stty cs8 -istrip \defeucw"
    alias asc "export LANG=C; /bin/stty cs7 istrip defeucw"
    alias twn_UTF-8 "export LANG=zh_TW.UTF-8; /bin/stty cs8 -istrip defeucw"

如何設定 C Shell 的語言環境別名

    如下所示,在您的 .cshrc 檔中放入別名。


    alias twn_EUC "setenv LANG zh_TW; /bin/stty cs8 -istrip defeucw"
    alias twn_BIG5 "setenv LANG zh_TW.BIG5; /bin/stty cs8 -istrip \defeucw"
    alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw"
    alias twn_UTF-8 "setenv LANG=zh_TW.UTF-8; /bin/stty cs8 -istrip defeucw"