Skip to content

Instantly share code, notes, and snippets.

@snt
Last active August 29, 2015 13:57
Show Gist options
  • Save snt/9798615 to your computer and use it in GitHub Desktop.
Save snt/9798615 to your computer and use it in GitHub Desktop.

AIXのkshのプロンプトをCygwin風に

ターミナルのタイトルバーも更新する。

export PS1="^[]2;$(id -n -u)@$(hostname) \${PWD}^G^[[32m$(id -n -u)@$(hostname) ^[[33m\${PWD}^[[0m
$ "

ただし、 ^[C-v + C-q + C-[ (C- はコントロールを押しながらを意味する) と入力。 ^G も同様。に C-v + C-q + C-g

タイトルバーの更新は

^[]2;表示したいもの^G

色は

^[[32m

のようにする。エスケープシーケンスでググる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment