zsh入門 パート2at UNIXzsh入門 パート2 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト605:603 03/09/06 02:01 >>604 仰せの通り、カレントディレクトリはプロンプトから得れば良いですが、 term-send-raw() に advice する時にちょっと工夫しないとダメそうです。 この関数は何か入力されるとコールされる関数のようですので、 `Enter'が入力された時だけ default-directory を更新し、 `a'が入力された時などは子プロセスのカレントディレクトリを 検索しないようにしないと使い物にならないみたいです。 606:名無しさん@お腹いっぱい。 03/09/06 03:21 >>581 echo ${(P)hoge} ${(P)${hoge}} zshexpnのParameter Expansion FlagsのPのところに そのものずばりの例がある。 | P This forces the value of the parameter name to be interpreted as | a further parameter name, whose value will be used where appro- | priate. If used with a nested parameter or command substitution, | the result of that will be taken as a parameter name in the same | way. For example, if you have `foo=bar' and `bar=baz', the | strings ${(P)foo}, ${(P)${foo}}, and ${(P)$(echo bar)} will be | expanded to `baz'. 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch